aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/invite.py3
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."""