diff options
| -rw-r--r-- | discord/mixins.py | 2 | ||||
| -rw-r--r-- | discord/user.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/discord/mixins.py b/discord/mixins.py index 0ed57945..a0cf0480 100644 --- a/discord/mixins.py +++ b/discord/mixins.py @@ -39,4 +39,4 @@ class Hashable(EqualityComparable): __slots__ = () def __hash__(self): - return hash(self.id) + return self.id >> 22 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) |