Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add missing message types #1852

Merged
merged 12 commits into from Jan 5, 2023
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -17,6 +17,10 @@ These changes are available on the `master` branch, but have not yet been releas
([#1809](https://github.com/Pycord-Development/pycord/pull/1809))
- Added missing `image` parameter to `Guild.create_scheduled_event()` method.
([#1831](https://github.com/Pycord-Development/pycord/pull/1831))
- Added new message types, `interaction_premium_upsell`, `stage_start`, `stage_end`,
`stage_speaker`, `stage_raise_hand`, `stage_topic`, and
`guild_application_premium_subscription`.
([#1852](https://github.com/Pycord-Development/pycord/pull/1852))

## [2.3.2] - 2022-12-03

Expand Down
8 changes: 8 additions & 0 deletions discord/enums.py
Expand Up @@ -248,6 +248,14 @@ class MessageType(Enum):
guild_invite_reminder = 22
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 VoiceRegion(Enum):
Expand Down
52 changes: 52 additions & 0 deletions docs/api/enums.rst
Expand Up @@ -242,6 +242,58 @@ of :class:`enum.Enum`.
The system message denoting that an context menu command was executed.

.. versionadded:: 2.0
.. attribute:: auto_moderation_action

The system message denoting an action by automod.

.. versionadded:: 2.3
Lulalaby marked this conversation as resolved.
Show resolved Hide resolved
Lulalaby marked this conversation as resolved.
Show resolved Hide resolved
.. attribute:: role_subscription_purchase

The system message denoting a role-subscription purchase.

.. versionadded:: 2.4

.. attribute:: interaction_premium_upsell

The system message denoting an interaction premium upsell.

.. versionadded:: 2.4

.. attribute:: stage_start

The system message denoting that a stage event has started.

.. versionadded:: 2.4

.. attribute:: stage_end

The system message denoting that a stage event has ended.

.. versionadded:: 2.4

.. attribute:: stage_speaker

The system message denoting that a stage event has a new speaker.

.. versionadded:: 2.4

.. attribute:: stage_raise_hand

The system message denoting that a stage event has someone has raised their hand.

.. versionadded:: 2.4

.. attribute:: stage_topic

The system message denoting that a stage event has a new topic.

.. versionadded:: 2.4

.. attribute:: guild_application_premium_subscription

The system message denoting that a member has subscribed to a guild application.

.. versionadded:: 2.4

.. class:: UserFlags

Expand Down