Add discord.Permissions.apps()

This commit is contained in:
Dep 2025-06-20 23:55:47 +05:30 committed by GitHub
parent 3e48119654
commit 0ce11544e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) 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 @classmethod
def events(cls) -> Self: def events(cls) -> Self:
"""A factory method that creates a :class:`Permissions` with all """A factory method that creates a :class:`Permissions` with all