diff options
| author | Rapptz <[email protected]> | 2021-04-08 02:28:29 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-04-08 02:29:14 -0400 |
| commit | e405bd5f1f149a5e073eb8968ec7b4f469fcfd93 (patch) | |
| tree | dd615ba2b002fe720b933e5f26b8b859be329d12 /discord | |
| parent | Add interaction related typings (diff) | |
| download | discord.py-e405bd5f1f149a5e073eb8968ec7b4f469fcfd93.tar.xz discord.py-e405bd5f1f149a5e073eb8968ec7b4f469fcfd93.zip | |
Add discord.types.Message.interaction attribute
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/types/message.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/types/message.py b/discord/types/message.py index 84e943f2..86ac82df 100644 --- a/discord/types/message.py +++ b/discord/types/message.py @@ -31,6 +31,7 @@ from .user import User from .emoji import PartialEmoji from .embed import Embed from .channel import ChannelType +from .interactions import MessageInteraction class ChannelMention(TypedDict): @@ -116,6 +117,7 @@ class _MessageOptional(TypedDict, total=False): flags: int stickers: List[Sticker] referenced_message: Optional[Message] + interaction: MessageInteraction MessageType = Literal[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 19, 20] |