From 1279510194441135070a294254365db3dbf03897 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 10 Aug 2021 09:24:49 -0400 Subject: Add support for PartialMessageable instances This allows library users to send messages to channels without fetching it first. --- discord/abc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord/abc.py') diff --git a/discord/abc.py b/discord/abc.py index 0c077dae..54f776c2 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -78,7 +78,7 @@ if TYPE_CHECKING: from .channel import CategoryChannel from .embeds import Embed from .message import Message, MessageReference, PartialMessage - from .channel import TextChannel, DMChannel, GroupChannel + from .channel import TextChannel, DMChannel, GroupChannel, PartialMessageable from .threads import Thread from .enums import InviteTarget from .ui.view import View @@ -88,7 +88,7 @@ if TYPE_CHECKING: OverwriteType, ) - PartialMessageableChannel = Union[TextChannel, Thread, DMChannel] + PartialMessageableChannel = Union[TextChannel, Thread, DMChannel, PartialMessageable] MessageableChannel = Union[PartialMessageableChannel, GroupChannel] SnowflakeTime = Union["Snowflake", datetime] -- cgit v1.2.3