mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Add discord.types.Message.interaction attribute
This commit is contained in:
parent
a31c19563f
commit
e405bd5f1f
@ -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…
x
Reference in New Issue
Block a user