aboutsummaryrefslogtreecommitdiff
path: root/discord/user.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-10 04:34:24 -0500
committerRapptz <[email protected]>2017-01-10 04:37:45 -0500
commit7e2c016eaa795a12de0255bb9d4b7e318768d75d (patch)
treea4a67340ec49780d68ae8d1fc6655b4352bd57ce /discord/user.py
parentFix NameError inside HTTPClient.edit_member. (diff)
downloaddiscord.py-7e2c016eaa795a12de0255bb9d4b7e318768d75d.tar.xz
discord.py-7e2c016eaa795a12de0255bb9d4b7e318768d75d.zip
Remove extraneous unneeded hash calls.
Diffstat (limited to 'discord/user.py')
-rw-r--r--discord/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/user.py b/discord/user.py
index c3c0d9c2..bbc6d1cc 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -81,7 +81,7 @@ class User(discord.abc.Messageable):
return not self.__eq__(other)
def __hash__(self):
- return hash(self.id)
+ return self.id >> 22
def __repr__(self):
return '<User id={0.id} name={0.name!r} discriminator={0.discriminator!r} bot={0.bot}>'.format(self)