aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/object.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/discord/object.py b/discord/object.py
index 1044abad..9cb40ecc 100644
--- a/discord/object.py
+++ b/discord/object.py
@@ -24,8 +24,9 @@ DEALINGS IN THE SOFTWARE.
"""
from . import utils
+from .mixins import Hashable
-class Object:
+class Object(Hashable):
"""Represents a generic Discord object.
The purpose of this class is to allow you to create 'miniature'
@@ -39,6 +40,20 @@ class Object:
receive this class rather than the actual data class. These cases are
extremely rare.
+ .. container:: operations
+
+ .. describe:: x == y
+
+ Checks if two objects are equal.
+
+ .. describe:: x != y
+
+ Checks if two objects are not equal.
+
+ .. describe:: hash(x)
+
+ Returns the object's hash.
+
Attributes
-----------
id : str