diff options
| author | Rapptz <[email protected]> | 2019-04-06 20:18:10 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-04-06 20:18:10 -0400 |
| commit | 9248ff306c709dc5b775714fe74691e913e2bf9a (patch) | |
| tree | 2ef908508e48e20b31a83483675b9a630ef48023 | |
| parent | Fix Attachment.save wording nit. (diff) | |
| download | discord.py-9248ff306c709dc5b775714fe74691e913e2bf9a.tar.xz discord.py-9248ff306c709dc5b775714fe74691e913e2bf9a.zip | |
Use explicit __eq__ call to be consistent with other methods.
| -rw-r--r-- | discord/emoji.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/emoji.py b/discord/emoji.py index d0cd15d4..492d29ea 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -94,7 +94,7 @@ class PartialEmoji: return self.id == other.id def __ne__(self, other): - return not self == other + return not self.__eq__(other) def __hash__(self): return hash((self.id, self.name)) @@ -208,7 +208,7 @@ class Emoji: return isinstance(other, (PartialEmoji, Emoji)) and self.id == other.id def __ne__(self, other): - return not self == other + return not self.__eq__(other) def __hash__(self): return self.id >> 22 |