aboutsummaryrefslogtreecommitdiff
path: root/discord/invite.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-17 00:30:08 -0500
committerRapptz <[email protected]>2015-12-17 00:32:54 -0500
commit51d91c2a82e01275d1c1d888319f1db14dc11791 (patch)
tree80aeac8f9a7d2c9be21e775c9185bec34cb10756 /discord/invite.py
parentAdd Message.clean_content property to get prettified mentions. (diff)
downloaddiscord.py-51d91c2a82e01275d1c1d888319f1db14dc11791.tar.xz
discord.py-51d91c2a82e01275d1c1d888319f1db14dc11791.zip
Most data classes now support hashing.
Diffstat (limited to 'discord/invite.py')
-rw-r--r--discord/invite.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/discord/invite.py b/discord/invite.py
index bc1ae3fb..ad6b2673 100644
--- a/discord/invite.py
+++ b/discord/invite.py
@@ -26,9 +26,9 @@ DEALINGS IN THE SOFTWARE.
from .user import User
from .utils import parse_time
-from .mixins import EqualityComparable
+from .mixins import Hashable
-class Invite(EqualityComparable):
+class Invite(Hashable):
"""Represents a Discord :class:`Server` or :class:`Channel` invite.
Depending on the way this object was created, some of the attributes can
@@ -43,6 +43,8 @@ class Invite(EqualityComparable):
+-----------+--------------------------------------+
| x != y | Checks if two invites are not equal. |
+-----------+--------------------------------------+
+ | hash(x) | Return the invite's hash. |
+ +-----------+--------------------------------------+
| str(x) | Returns the invite's URL. |
+-----------+--------------------------------------+