Add channel_id to RawMessageUpdateEvent
This commit is contained in:
parent
c7a1f5e6e9
commit
2c99198033
@ -89,16 +89,19 @@ class RawMessageUpdateEvent(_RawReprMixin):
|
|||||||
-----------
|
-----------
|
||||||
message_id: :class:`int`
|
message_id: :class:`int`
|
||||||
The message ID that got updated.
|
The message ID that got updated.
|
||||||
|
channel_id: :class:`int`
|
||||||
|
The channel ID where the update took place.
|
||||||
data: :class:`dict`
|
data: :class:`dict`
|
||||||
The raw data given by the `gateway <https://discordapp.com/developers/docs/topics/gateway#message-update>`_
|
The raw data given by the `gateway <https://discordapp.com/developers/docs/topics/gateway#message-update>`_
|
||||||
cached_message: Optional[:class:`Message`]
|
cached_message: Optional[:class:`Message`]
|
||||||
The cached message, if found in the internal message cache.
|
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):
|
def __init__(self, data):
|
||||||
self.message_id = int(data['id'])
|
self.message_id = int(data['id'])
|
||||||
|
self.channel_id = int(data['channel_id'])
|
||||||
self.data = data
|
self.data = data
|
||||||
self.cached_message = None
|
self.cached_message = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user