aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhazhismel Kumykov <[email protected]>2016-04-05 14:30:04 -0400
committerKhazhismel Kumykov <[email protected]>2016-04-05 14:30:04 -0400
commit160cbc81e72791b4fa531a4aa2b383ad12630443 (patch)
treea50c28d0770a4dbfe76e9fea60ac6f7cf5744dd5
parentFix handling of unavailable servers in READY (diff)
downloaddiscord.py-160cbc81e72791b4fa531a4aa2b383ad12630443.tar.xz
discord.py-160cbc81e72791b4fa531a4aa2b383ad12630443.zip
Clarify channel-specific permissions documentation.
Manage Roles and Manage Channels is renamed to "Manage Permissions" and "Manage Channel" in the discord UI, clarify which fields in the Permission object those map to.
-rw-r--r--discord/permissions.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/discord/permissions.py b/discord/permissions.py
index 94b89a24..c74043e4 100644
--- a/discord/permissions.py
+++ b/discord/permissions.py
@@ -161,7 +161,9 @@ class Permissions:
@property
def manage_roles(self):
- """Returns True if a user can manage server roles. This role overrides all other permissions."""
+ """Returns True if a user can manage server roles. This role overrides all other permissions.
+
+ This also corresponds to the "manage permissions" channel-specific override."""
return self._bit(3)
@manage_roles.setter
@@ -170,7 +172,9 @@ class Permissions:
@property
def manage_channels(self):
- """Returns True if a user can edit, delete, or create channels in the server."""
+ """Returns True if a user can edit, delete, or create channels in the server.
+
+ This also corresponds to the "manage channel" channel-specific override."""
return self._bit(4)
@manage_channels.setter