Fix __hash__ for Invite objects.

This commit is contained in:
Rapptz 2017-09-04 20:03:07 -04:00
parent 4db76c6c6b
commit dcde896e14

View File

@ -121,6 +121,9 @@ class Invite(Hashable):
def __repr__(self):
return '<Invite code={0.code!r}>'.format(self)
def __hash__(self):
return hash(self.code)
@property
def id(self):
"""Returns the proper code portion of the invite."""