Skip to content

Commit a9e9ae0

Browse files
JustaSqu1dpre-commit-ci[bot]LulalabyBobDotCom
authored
feat: add missing message types (#1852)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: BobDotCom <[email protected]>
1 parent b00b3da commit a9e9ae0

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ These changes are available on the `master` branch, but have not yet been releas
1717
([#1809](https://github.com/Pycord-Development/pycord/pull/1809))
1818
- Added missing `image` parameter to `Guild.create_scheduled_event()` method.
1919
([#1831](https://github.com/Pycord-Development/pycord/pull/1831))
20+
- Added new message types, `interaction_premium_upsell`, `stage_start`, `stage_end`,
21+
`stage_speaker`, `stage_raise_hand`, `stage_topic`, and
22+
`guild_application_premium_subscription`.
23+
([#1852](https://github.com/Pycord-Development/pycord/pull/1852))
2024

2125
## [2.3.2] - 2022-12-03
2226

discord/enums.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,14 @@ class MessageType(Enum):
248248
guild_invite_reminder = 22
249249
context_menu_command = 23
250250
auto_moderation_action = 24
251+
role_subscription_purchase = 25
252+
interaction_premium_upsell = 26
253+
stage_start = 27
254+
stage_end = 28
255+
stage_speaker = 29
256+
stage_raise_hand = 30
257+
stage_topic = 31
258+
guild_application_premium_subscription = 32
251259

252260

253261
class VoiceRegion(Enum):

docs/api/enums.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,58 @@ of :class:`enum.Enum`.
242242
The system message denoting that an context menu command was executed.
243243

244244
.. versionadded:: 2.0
245+
.. attribute:: auto_moderation_action
246+
247+
The system message denoting an action by automod.
248+
249+
.. versionadded:: 2.3
250+
.. attribute:: role_subscription_purchase
251+
252+
The system message denoting a role-subscription purchase.
253+
254+
.. versionadded:: 2.4
255+
256+
.. attribute:: interaction_premium_upsell
257+
258+
The system message denoting an interaction premium upsell.
259+
260+
.. versionadded:: 2.4
261+
262+
.. attribute:: stage_start
263+
264+
The system message denoting that a stage event has started.
265+
266+
.. versionadded:: 2.4
267+
268+
.. attribute:: stage_end
269+
270+
The system message denoting that a stage event has ended.
271+
272+
.. versionadded:: 2.4
273+
274+
.. attribute:: stage_speaker
275+
276+
The system message denoting that a stage event has a new speaker.
277+
278+
.. versionadded:: 2.4
279+
280+
.. attribute:: stage_raise_hand
281+
282+
The system message denoting that a stage event has someone has raised their hand.
283+
284+
.. versionadded:: 2.4
285+
286+
.. attribute:: stage_topic
287+
288+
The system message denoting that a stage event has a new topic.
289+
290+
.. versionadded:: 2.4
291+
292+
.. attribute:: guild_application_premium_subscription
293+
294+
The system message denoting that a member has subscribed to a guild application.
295+
296+
.. versionadded:: 2.4
245297

246298
.. class:: UserFlags
247299

0 commit comments

Comments
 (0)