Add operations you can do to a Message and PartialMessage to docs
This commit is contained in:
parent
3fe6d261f1
commit
ebf623d9de
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user