Browse Source

Add discord.Permissions.apps()

Signed-off-by: Depreca1ed <[email protected]>
pull/10147/head
Depreca1ed 3 weeks ago
parent
commit
3d0d36b3d9
  1. 10
      discord/permissions.py

10
discord/permissions.py

@ -363,6 +363,16 @@ class Permissions(BaseFlags):
"""
return cls(0b0000_0000_0000_0000_0000_0001_0000_0100_0111_0000_0000_0000_0010_0000_0011_1110)
@classmethod
def apps(cls) -> Self:
"""A factory method that creates a :class:`Permissions` with all
"Apps" permissions from the official Discord UI set to ``True``.
.. versionadded:: 2.6
"""
return cls(0b0000_0000_0000_0100_0000_0000_1000_0000_1000_0000_0000_0000_0000_0000_0000_0000)
@classmethod
def events(cls) -> Self:
"""A factory method that creates a :class:`Permissions` with all

Loading…
Cancel
Save