Add channel_id to RawMessageUpdateEvent

This commit is contained in:
Heath123 2019-08-12 01:54:25 +03:00 committed by Danny
parent c7a1f5e6e9
commit 2c99198033

View File

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