Browse Source

Add discord.types.Message.interaction attribute

pull/6676/head
Rapptz 4 years ago
parent
commit
e405bd5f1f
  1. 2
      discord/types/message.py

2
discord/types/message.py

@ -31,6 +31,7 @@ from .user import User
from .emoji import PartialEmoji from .emoji import PartialEmoji
from .embed import Embed from .embed import Embed
from .channel import ChannelType from .channel import ChannelType
from .interactions import MessageInteraction
class ChannelMention(TypedDict): class ChannelMention(TypedDict):
@ -116,6 +117,7 @@ class _MessageOptional(TypedDict, total=False):
flags: int flags: int
stickers: List[Sticker] stickers: List[Sticker]
referenced_message: Optional[Message] 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] MessageType = Literal[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 19, 20]

Loading…
Cancel
Save