mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-04 11:02:37 +00:00
Reference the Discord UI in the permission documentation.
This commit is contained in:
parent
aa45bce212
commit
f3f3ab1cd4
@ -147,19 +147,19 @@ class Permissions:
|
||||
@classmethod
|
||||
def general(cls):
|
||||
"""A factory method that creates a :class:`Permissions` with all
|
||||
"General" permissions set to True."""
|
||||
"General" permissions from the official Discord UI set to True."""
|
||||
return cls(0b00011100000000000000000000111111)
|
||||
|
||||
@classmethod
|
||||
def text(cls):
|
||||
"""A factory method that creates a :class:`Permissions` with all
|
||||
"Text" permissions set to True."""
|
||||
"Text" permissions from the official Discord UI set to True."""
|
||||
return cls(0b00000000000000111111110000000000)
|
||||
|
||||
@classmethod
|
||||
def voice(cls):
|
||||
"""A factory method that creates a :class:`Permissions` with all
|
||||
"Voice" permissions set to True."""
|
||||
"Voice" permissions from the official Discord UI set to True."""
|
||||
return cls(0b00000011111100000000000000000000)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user