Browse Source

Merge 3d0d36b3d9 into 26855160f8

pull/10147/merge
Dep 3 weeks ago
committed by GitHub
parent
commit
3eea1ddec4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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