diff options
| author | Rapptz <[email protected]> | 2021-08-10 09:24:49 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-08-10 09:24:49 -0400 |
| commit | 1279510194441135070a294254365db3dbf03897 (patch) | |
| tree | d12b5f2323e1e650ebc22ae7e9d161439e18ea08 /discord/abc.py | |
| parent | Fill in ConnectionState.user via HTTPClient.static_login (diff) | |
| download | discord.py-1279510194441135070a294254365db3dbf03897.tar.xz discord.py-1279510194441135070a294254365db3dbf03897.zip | |
Add support for PartialMessageable instances
This allows library users to send messages to channels without fetching
it first.
Diffstat (limited to 'discord/abc.py')
| -rw-r--r-- | discord/abc.py | 4 |
1 files changed, 2 insertions, 2 deletions
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] |