diff options
| author | Rapptz <[email protected]> | 2020-01-19 02:41:50 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-01-19 02:41:50 -0500 |
| commit | 650beee53dc2ea1f50cf22673d30796556345d1b (patch) | |
| tree | 55847c0c1c70312b5ed89c71fa3db52cf023e647 | |
| parent | Document NotFound exception raise in message deletion endpoints (diff) | |
| download | discord.py-650beee53dc2ea1f50cf22673d30796556345d1b.tar.xz discord.py-650beee53dc2ea1f50cf22673d30796556345d1b.zip | |
Add instance check to PermissionOvewrite.__eq__
| -rw-r--r-- | discord/permissions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/permissions.py b/discord/permissions.py index c573573d..a60bbc82 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -482,7 +482,7 @@ class PermissionOverwrite: setattr(self, key, value) def __eq__(self, other): - return self._values == other._values + return isinstance(other, PermissionOverwrite) and self._values == other._values def _set(self, key, value): if value not in (True, None, False): |