Add cached_message to on_raw_message_edit event

Also add documentation for this behavior
This commit is contained in:
Vexs
2019-04-09 09:37:58 -05:00
committed by Rapptz
parent 792b31833a
commit 82a39eb148
3 changed files with 12 additions and 3 deletions

View File

@ -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>`_