diff options
| author | Rapptz <[email protected]> | 2017-02-13 02:44:29 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-02-13 02:44:29 -0500 |
| commit | 1ec7daf37296a958c73d6729bfddf57bfa0fb3f1 (patch) | |
| tree | 741df688e67ab6e54539abd23ab1adcda054fe5b | |
| parent | [commands] Add cog local error handlers via __error. (diff) | |
| download | discord.py-1ec7daf37296a958c73d6729bfddf57bfa0fb3f1.tar.xz discord.py-1ec7daf37296a958c73d6729bfddf57bfa0fb3f1.zip | |
Documentation fixes for permission.
| -rw-r--r-- | discord/permissions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/permissions.py b/discord/permissions.py index 8970ce4c..c8c8ae37 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -94,14 +94,14 @@ class Permissions: return self._perm_iterator() def is_subset(self, other): - """Returns True if other has the same or fewer permissions as self.""" + """Returns True if self has the same or fewer permissions as other.""" if isinstance(other, Permissions): return (self.value & other.value) == self.value else: raise TypeError("cannot compare {} with {}".format(self.__class__.__name__, other.__class__name)) def is_superset(self, other): - """Returns True if other has the same or more permissions as self.""" + """Returns True if self has the same or more permissions as other.""" if isinstance(other, Permissions): return (self.value | other.value) == self.value else: @@ -138,7 +138,7 @@ class Permissions: True and the guild-specific ones set to False. The guild-specific permissions are currently: - - manager_guild + - manage_guild - kick_members - ban_members - administrator |