mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-09 15:29:57 +00:00
Add new message types to MessageType enum
This commit is contained in:
parent
3d24f0fb12
commit
8e52db1f1b
@ -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):
|
||||
|
@ -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):
|
||||
|
11
docs/api.rst
11
docs/api.rst
@ -1622,6 +1622,17 @@ of :class:`enum.Enum`.
|
||||
|
||||
The system message sent when a user purchases or renews a role subscription.
|
||||
|
||||
.. versionadded:: 2.2
|
||||
.. attribute:: interaction_premium_upsell
|
||||
|
||||
The system message sent when a user is given an advertisement to purchase a premium tier for
|
||||
an application during an interaction.
|
||||
|
||||
.. versionadded:: 2.2
|
||||
.. attribute:: guild_application_premium_subscription
|
||||
|
||||
The system message sent when an application's premium subscription is purchased for the guild.
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
.. class:: UserFlags
|
||||
|
Loading…
x
Reference in New Issue
Block a user