From 6d57ddf11be8c2d51b77170b971a53cdfb0e76db Mon Sep 17 00:00:00 2001 From: Mitchell Ferree Date: Thu, 23 Aug 2018 19:10:29 -0600 Subject: [PATCH] Correct Member.__hash__ Make Member.__hash__ just use whatever its User object's hash impl is. --- discord/member.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/member.py b/discord/member.py index cbd2467bf..19b6038a3 100644 --- a/discord/member.py +++ b/discord/member.py @@ -180,7 +180,7 @@ class Member(discord.abc.Messageable, _BaseUser): return not self.__eq__(other) def __hash__(self): - return hash(self._user.id) + return hash(self._user) async def _get_channel(self): ch = await self.create_dm()