Browse Source

Fix Message.to_reference from the MessageReference changes

pull/6092/head
Rapptz 4 years ago
parent
commit
a4cb71b64e
  1. 4
      discord/message.py

4
discord/message.py

@ -311,7 +311,9 @@ class MessageReference:
:class:`MessageReference` :class:`MessageReference`
A reference to the message. A reference to the message.
""" """
return cls(message._state, message_id=message.id, channel_id=message.channel.id, guild_id=getattr(message.guild, 'id', None)) self = cls(message_id=message.id, channel_id=message.channel.id, guild_id=getattr(message.guild, 'id', None))
self._state = message._state
return self
@property @property
def cached_message(self): def cached_message(self):

Loading…
Cancel
Save