Add discord.types.Message.interaction attribute

This commit is contained in:
Rapptz 2021-04-08 02:28:29 -04:00
parent a31c19563f
commit e405bd5f1f

View File

@ -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]