aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
authorVexs <[email protected]>2019-04-09 09:37:58 -0500
committerRapptz <[email protected]>2019-05-09 05:53:56 -0400
commit82a39eb148e747bfc8bcd85ae19e4d4b369af5a1 (patch)
treea178ae516ac86fc2abc7f39f77eb20fa322952c9 /docs/api.rst
parentMention what can be done during initialisation in embeds. (diff)
downloaddiscord.py-82a39eb148e747bfc8bcd85ae19e4d4b369af5a1.tar.xz
discord.py-82a39eb148e747bfc8bcd85ae19e4d4b369af5a1.zip
Add cached_message to on_raw_message_edit event
Also add documentation for this behavior
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 09d4d0c6..78a96f45 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -296,6 +296,9 @@ to handle it, which defaults to print a traceback and ignoring the exception.
Called when a message is edited. Unlike :func:`on_message_edit`, this is called
regardless of the state of the internal message cache.
+ If the message is found in the message cache,
+ it can be accessed via :attr:`RawMessageUpdateEvent.cached_message`
+
Due to the inherently raw nature of this event, the data parameter coincides with
the raw data given by the `gateway <https://discordapp.com/developers/docs/topics/gateway#message-update>`_