Browse Source

Correct Member.__hash__

Make Member.__hash__ just use whatever its User object's hash impl is.
pull/1534/head
Mitchell Ferree 7 years ago
committed by GitHub
parent
commit
6d57ddf11b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/member.py

2
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()

Loading…
Cancel
Save