Add new message types to MessageType enum

This commit is contained in:
Rapptz
2023-01-10 18:10:30 -05:00
parent 3d24f0fb12
commit 8e52db1f1b
3 changed files with 21 additions and 1 deletions

View File

@ -233,6 +233,13 @@ class MessageType(Enum):
context_menu_command = 23
auto_moderation_action = 24
role_subscription_purchase = 25
interaction_premium_upsell = 26
# stage_start = 27
# stage_end = 28
# stage_speaker = 29
# stage_raise_hand = 30
# stage_topic = 31
guild_application_premium_subscription = 32
class SpeakingState(Enum):

View File

@ -100,7 +100,9 @@ class RoleSubscriptionData(TypedDict):
is_renewal: bool
MessageType = Literal[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 18, 19, 20, 21, 22, 23, 24, 25]
MessageType = Literal[
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32
]
class Message(PartialMessage):