Allow comparison between User and Member instances again.

This commit is contained in:
Rapptz 2017-05-10 19:32:25 -04:00
parent a2c9cefac9
commit 5106feaf57

View File

@ -166,7 +166,7 @@ class Member(discord.abc.Messageable):
' bot={1.bot} nick={0.nick!r} guild={0.guild!r}>'.format(self, self._user)
def __eq__(self, other):
return isinstance(other, Member) and other._user.id == self._user.id and self.guild.id == other.guild.id
return isinstance(other, (BaseUser, Member)) and other.id == self.id
def __ne__(self, other):
return not self.__eq__(other)