mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 07:54:36 +00:00
Remove extraneous unneeded hash calls.
This commit is contained in:
parent
94448d3972
commit
7e2c016eaa
@ -39,4 +39,4 @@ class Hashable(EqualityComparable):
|
||||
__slots__ = ()
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.id)
|
||||
return self.id >> 22
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user