From 5106feaf57c63fe6fa981b19daba5a2f19d5680b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 10 May 2017 19:32:25 -0400 Subject: [PATCH] Allow comparison between User and Member instances again. --- discord/member.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/member.py b/discord/member.py index 3df44c482..f249e09d5 100644 --- a/discord/member.py +++ b/discord/member.py @@ -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)