From 9137d92f67a6d50782e199ca6d6558c1ea6015e2 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 13 Dec 2015 22:53:48 -0500 Subject: All data classes now support !=, == and str(obj). --- discord/user.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'discord/user.py') 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): -- cgit v1.2.3