Skip to content

Commit

Permalink
Add more missing perms to permission classmethods
Browse files Browse the repository at this point in the history
  • Loading branch information
z03h committed May 10, 2024
1 parent f851d9a commit e5ae306
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions discord/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ def all_channel(cls) -> Self:
- :attr:`ban_members`
- :attr:`administrator`
- :attr:`create_expressions`
- :attr:`moderate_members`
- :attr:`create_events`
- :attr:`manage_events`
- :attr:`view_creator_monetization_analytics`
.. versionchanged:: 1.7
Added :attr:`stream`, :attr:`priority_speaker` and :attr:`use_application_commands` permissions.
Expand All @@ -237,9 +241,10 @@ def all_channel(cls) -> Self:
Added :attr:`use_soundboard`, :attr:`create_expressions` permissions.
.. versionchanged:: 2.4
Added :attr:`send_polls`, :attr:`send_voice_messages` permissions.
Added :attr:`send_polls`, :attr:`send_voice_messages`, attr:`use_external_sounds`, and
:attr:`use_embedded_activities` permissions.
"""
return cls(0b0000_0000_0000_0010_0100_0100_0111_1101_1011_0011_1111_0111_1111_1111_0101_0001)
return cls(0b0000_0000_0000_0010_0110_0100_1111_1101_1011_0011_1111_0111_1111_1111_0101_0001)

@classmethod
def general(cls) -> Self:
Expand All @@ -254,8 +259,11 @@ def general(cls) -> Self:
.. versionchanged:: 2.3
Added :attr:`create_expressions` permission.
.. versionchanged:: 2.4
Added :attr:`view_creator_monetization_analytics` permission.
"""
return cls(0b0000_0000_0000_0000_0000_1000_0000_0000_0111_0000_0000_1000_0000_0100_1011_0000)
return cls(0b0000_0000_0000_0000_0000_1010_0000_0000_0111_0000_0000_1000_0000_0100_1011_0000)

@classmethod
def membership(cls) -> Self:
Expand Down

0 comments on commit e5ae306

Please sign in to comment.