mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Allow comparison between User and Member instances again.
This commit is contained in:
parent
a2c9cefac9
commit
5106feaf57
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user