mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Fix fail_if_not_exists not being set when constructed with state
This commit is contained in:
parent
30310b9ab6
commit
da6119e04c
@ -339,6 +339,7 @@ class MessageReference:
|
||||
self.message_id = utils._get_as_snowflake(data, 'message_id')
|
||||
self.channel_id = int(data.pop('channel_id'))
|
||||
self.guild_id = utils._get_as_snowflake(data, 'guild_id')
|
||||
self.fail_if_not_exists = data.get('fail_if_not_exists', True)
|
||||
self._state = state
|
||||
self.resolved = None
|
||||
return self
|
||||
|
Loading…
x
Reference in New Issue
Block a user