aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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