mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +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
|
@classmethod
|
||||||
def general(cls):
|
def general(cls):
|
||||||
"""A factory method that creates a :class:`Permissions` with all
|
"""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)
|
return cls(0b00011100000000000000000000111111)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def text(cls):
|
def text(cls):
|
||||||
"""A factory method that creates a :class:`Permissions` with all
|
"""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)
|
return cls(0b00000000000000111111110000000000)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def voice(cls):
|
def voice(cls):
|
||||||
"""A factory method that creates a :class:`Permissions` with all
|
"""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)
|
return cls(0b00000011111100000000000000000000)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user