aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeath123 <[email protected]>2019-08-12 01:54:25 +0300
committerDanny <[email protected]>2019-08-11 18:54:25 -0400
commit2c99198033e627a67f01c35b111908c094a4fa74 (patch)
tree51aca57f10fe7dd2f790ca691bc3f02364d99b64
parentDisambiguate and normalize documentation for non-bot only methods (diff)
downloaddiscord.py-2c99198033e627a67f01c35b111908c094a4fa74.tar.xz
discord.py-2c99198033e627a67f01c35b111908c094a4fa74.zip
Add channel_id to RawMessageUpdateEvent
-rw-r--r--discord/raw_models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/discord/raw_models.py b/discord/raw_models.py
index 19ec68ba..ac928b40 100644
--- a/discord/raw_models.py
+++ b/discord/raw_models.py
@@ -89,16 +89,19 @@ class RawMessageUpdateEvent(_RawReprMixin):
-----------
message_id: :class:`int`
The message ID that got updated.
+ channel_id: :class:`int`
+ The channel ID where the update took place.
data: :class:`dict`
The raw data given by the `gateway <https://discordapp.com/developers/docs/topics/gateway#message-update>`_
cached_message: Optional[:class:`Message`]
The cached message, if found in the internal message cache.
"""
- __slots__ = ('message_id', 'data', 'cached_message')
+ __slots__ = ('message_id', 'channel_id', 'data', 'cached_message')
def __init__(self, data):
self.message_id = int(data['id'])
+ self.channel_id = int(data['channel_id'])
self.data = data
self.cached_message = None