aboutsummaryrefslogtreecommitdiff
path: root/discord/member.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-05-18 05:12:48 -0400
committerRapptz <[email protected]>2017-05-18 05:12:48 -0400
commit8e34a256a4c9302d096d989b97ff5b22b050b149 (patch)
tree041d4e143b8022935164f07bb3fd306cc54d74a2 /discord/member.py
parentLazy fix for active class when viewport is too small for sidebar. (diff)
downloaddiscord.py-8e34a256a4c9302d096d989b97ff5b22b050b149.tar.xz
discord.py-8e34a256a4c9302d096d989b97ff5b22b050b149.zip
Fix User == Member comparisons.
Diffstat (limited to 'discord/member.py')
-rw-r--r--discord/member.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/member.py b/discord/member.py
index 7dc08df4..7e4c4069 100644
--- a/discord/member.py
+++ b/discord/member.py
@@ -107,7 +107,7 @@ def flatten_user(cls):
return cls
@flatten_user
-class Member(discord.abc.Messageable):
+class Member(discord.abc.Messageable, discord.abc.User):
"""Represents a Discord member to a :class:`Guild`.
This implements a lot of the functionality of :class:`User`.
@@ -170,7 +170,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, (BaseUser, Member)) and other.id == self.id
+ return isinstance(other, discord.abc.User) and other.id == self.id
def __ne__(self, other):
return not self.__eq__(other)