Skip to content

Commit 10cdc84

Browse files
committed
✨ Add creator monetization analytics perms (1 << 41)
1 parent b79bb2d commit 10cdc84

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

discord/permissions.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ def all_channel(cls: type[P]) -> P:
191191
- :attr:`manage_emojis`
192192
- :attr:`view_audit_log`
193193
- :attr:`view_guild_insights`
194+
- :attr:`view_creator_monetization_analytics`
194195
- :attr:`manage_guild`
195196
- :attr:`change_nickname`
196197
- :attr:`manage_nicknames`
@@ -610,6 +611,14 @@ def moderate_members(self) -> int:
610611
"""
611612
return 1 << 40
612613

614+
@flag_value
615+
def view_creator_monetization_analytics(self) -> int:
616+
""":class:`bool`: Returns ``True`` if a user can view creator monetization (role subscription) analytics.
617+
618+
.. versionadded:: 2.7
619+
"""
620+
return 1 << 41
621+
613622
@flag_value
614623
def use_soundboard(self) -> int:
615624
""":class:`bool`: Returns ``True`` if a user can use the soundboard in a voice channel.

0 commit comments

Comments
 (0)