diff options
| author | Rapptz <[email protected]> | 2016-09-29 18:32:47 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-09-29 18:32:47 -0400 |
| commit | 18a9b759909c6380a63b721ebf2b3a3c65a1b739 (patch) | |
| tree | c9e4639f467993cd628c8cdf879f109f75f38d30 | |
| parent | Fix URL pointing to better method in Client.change_status (diff) | |
| download | discord.py-18a9b759909c6380a63b721ebf2b3a3c65a1b739.tar.xz discord.py-18a9b759909c6380a63b721ebf2b3a3c65a1b739.zip | |
Fix Permissions.manage_emojis bit being incorrect.
| -rw-r--r-- | discord/permissions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/permissions.py b/discord/permissions.py index 3cf903e9..8ff4d551 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -127,7 +127,7 @@ class Permissions: def all(cls): """A factory method that creates a :class:`Permissions` with all permissions set to True.""" - return cls(0b00111111111101111111110000111111) + return cls(0b01011111111101111111110000111111) @classmethod def all_channel(cls): @@ -148,7 +148,7 @@ class Permissions: def general(cls): """A factory method that creates a :class:`Permissions` with all "General" permissions from the official Discord UI set to True.""" - return cls(0b00111100000000000000000000111111) + return cls(0b01011100000000000000000000111111) @classmethod def text(cls): @@ -423,11 +423,11 @@ class Permissions: This also corresponds to the "manage permissions" channel-specific override. """ - return self._bit(29) + return self._bit(30) @manage_emojis.setter def manage_emojis(self, value): - self._set(29, value) + self._set(30, value) # 2 unused |