diff options
| author | Rapptz <[email protected]> | 2015-12-10 06:08:49 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-12-10 06:08:49 -0500 |
| commit | 98ba68bb6635dc325ba90a70c57c4634c3598e4a (patch) | |
| tree | 4b9ca38e1a8c5a05f1368010326854a3c43f5156 | |
| parent | Close the ClientSession in __del__. (diff) | |
| download | discord.py-98ba68bb6635dc325ba90a70c57c4634c3598e4a.tar.xz discord.py-98ba68bb6635dc325ba90a70c57c4634c3598e4a.zip | |
Simplified permissions bit operations.
| -rw-r--r-- | discord/permissions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/permissions.py b/discord/permissions.py index 676f6a5f..5f826a1f 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -145,9 +145,9 @@ class Permissions(object): # Then we take this value and look at the allowed values. # And whatever is allowed is set to 1. # So 0000 OP2 0101 -> 0101 - # The OP is (base ^ denied) & ~denied. + # The OP is base & ~denied. # The OP2 is base | allowed. - self.value = ((self.value ^ deny) & ~deny) | allow + self.value = (self.value & ~deny) | allow @property def can_create_instant_invite(self): |