From ffb7ea24e6ea1375591e33f89f8deb89b5c4f12e Mon Sep 17 00:00:00 2001 From: Paillat Date: Thu, 24 Oct 2024 15:33:17 +0200 Subject: [PATCH 1/2] :sparkles: Add creator monetization analytics perms (`1 << 41`) --- discord/permissions.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/discord/permissions.py b/discord/permissions.py index 497ef597e1..4f252fe399 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -610,6 +610,14 @@ def moderate_members(self) -> int: """ return 1 << 40 + @flag_value + def view_creator_monetization_analytics(self) -> int: + """:class:`bool`: Returns ``True`` if a user can view creator monetization (role subscription) analytics. + + .. versionadded:: 2.7 + """ + return 1 << 41 + @flag_value def send_voice_messages(self) -> int: """:class:`bool`: Returns ``True`` if a member can send voice messages. From 0740c77b36fada97fac5f95bdeffdd3356521f70 Mon Sep 17 00:00:00 2001 From: Paillat Date: Thu, 24 Oct 2024 15:37:44 +0200 Subject: [PATCH 2/2] :memo: CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index daf082ae66..84a737c3bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,10 @@ These changes are available on the `master` branch, but have not yet been releas ([#2587](https://github.com/Pycord-Development/pycord/pull/2587/)) - Added optional `filter` parameter to `utils.basic_autocomplete()`. ([#2590](https://github.com/Pycord-Development/pycord/pull/2590)) +- Added + [VIEW_CREATOR_MONETIZATION_ANALYTICS](https://discord.com/developers/docs/topics/permissions#:~:text=VIEW_CREATOR_MONETIZATION_ANALYTICS) + permission: `Permissions.view_creator_monetization_analytics` + ([#2622](https://github.com/Pycord-Development/pycord/pull/2622)) ### Fixed