aboutsummaryrefslogtreecommitdiff
path: root/discord/abc.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-08-10 09:24:49 -0400
committerRapptz <[email protected]>2021-08-10 09:24:49 -0400
commit1279510194441135070a294254365db3dbf03897 (patch)
treed12b5f2323e1e650ebc22ae7e9d161439e18ea08 /discord/abc.py
parentFill in ConnectionState.user via HTTPClient.static_login (diff)
downloaddiscord.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.py4
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]