aboutsummaryrefslogtreecommitdiff
path: root/discord/user.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-13 22:53:48 -0500
committerRapptz <[email protected]>2015-12-13 22:53:48 -0500
commit9137d92f67a6d50782e199ca6d6558c1ea6015e2 (patch)
treed900865b68c18ad1712de4d6d6914f93c43bb7bf /discord/user.py
parentChanged functions that return a constant value into properties. (diff)
downloaddiscord.py-9137d92f67a6d50782e199ca6d6558c1ea6015e2.tar.xz
discord.py-9137d92f67a6d50782e199ca6d6558c1ea6015e2.zip
All data classes now support !=, == and str(obj).
Diffstat (limited to 'discord/user.py')
-rw-r--r--discord/user.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/discord/user.py b/discord/user.py
index 973a9ae2..455fca14 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -64,9 +64,7 @@ class User(object):
return isinstance(other, User) and other.id == self.id
def __ne__(self, other):
- if isinstance(other, User):
- return other.id != self.id
- return False
+ return not self.__eq__(other)
@property
def avatar_url(self):