mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add context_menu_command Message type
This commit is contained in:
@ -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):
|
||||
|
@ -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,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user