diff options
| author | Rapptz <[email protected]> | 2017-09-04 20:03:07 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-09-04 20:03:07 -0400 |
| commit | dcde896e14bb6187fc0e4b0fb693a528e0d283af (patch) | |
| tree | f756717e7f710979d8c6b2c6d2a85232f3b5c1ae | |
| parent | Switched places of user and reaction in wait_for example (diff) | |
| download | discord.py-dcde896e14bb6187fc0e4b0fb693a528e0d283af.tar.xz discord.py-dcde896e14bb6187fc0e4b0fb693a528e0d283af.zip | |
Fix __hash__ for Invite objects.
| -rw-r--r-- | discord/invite.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/invite.py b/discord/invite.py index e40817a2..2af3a66f 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -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.""" |