mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-02 00:00:02 +00:00
Add discord.Permissions.apps()
This commit is contained in:
parent
3e48119654
commit
0ce11544e3
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user