Add context_menu_command Message type

This commit is contained in:
Jonah Lawrence 2022-03-30 17:13:00 -06:00 committed by GitHub
parent 0a8065606a
commit 37bbfdce95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 4 deletions

View File

@ -221,9 +221,10 @@ class MessageType(Enum):
guild_discovery_grace_period_final_warning = 17
thread_created = 18
reply = 19
application_command = 20
chat_input_command = 20
thread_starter_message = 21
guild_invite_reminder = 22
context_menu_command = 23
class SpeakingState(Enum):

View File

@ -1645,7 +1645,8 @@ class Message(PartialMessage, Hashable):
return self.type not in (
MessageType.default,
MessageType.reply,
MessageType.application_command,
MessageType.chat_input_command,
MessageType.context_menu_command,
MessageType.thread_starter_message,
)

View File

@ -1403,9 +1403,9 @@ of :class:`enum.Enum`.
The system message denoting that the author is replying to a message.
.. versionadded:: 2.0
.. attribute:: application_command
.. attribute:: chat_input_command
The system message denoting that an application (or "slash") command was executed.
The system message denoting that a slash command was executed.
.. versionadded:: 2.0
.. attribute:: guild_invite_reminder
@ -1418,6 +1418,11 @@ of :class:`enum.Enum`.
The system message denoting the message in the thread that is the one that started the
thread's conversation topic.
.. versionadded:: 2.0
.. attribute:: context_menu_command
The system message denoting that a context menu command was executed.
.. versionadded:: 2.0
.. class:: UserFlags