aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
Diffstat (limited to 'discord')
-rw-r--r--discord/message.py28
1 files changed, 27 insertions, 1 deletions
diff --git a/discord/message.py b/discord/message.py
index 82b959ac..bb37b4cd 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -367,7 +367,19 @@ def flatten_handlers(cls):
class Message(Hashable):
r"""Represents a message from Discord.
- There should be no need to create one of these manually.
+ .. container:: operations
+
+ .. describe:: x == y
+
+ Checks if two messages are equal.
+
+ .. describe:: x != y
+
+ Checks if two messages are not equal.
+
+ .. describe:: hash(x)
+
+ Returns the message's hash.
Attributes
-----------
@@ -1312,6 +1324,20 @@ class PartialMessage(Hashable):
.. versionadded:: 1.6
+ .. container:: operations
+
+ .. describe:: x == y
+
+ Checks if two partial messages are equal.
+
+ .. describe:: x != y
+
+ Checks if two partial messages are not equal.
+
+ .. describe:: hash(x)
+
+ Returns the partial message's hash.
+
Attributes
-----------
channel: :class:`TextChannel`