1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-09 15:29:57 +00:00

Use default allowed_mentions in Message.edit

Fix 
This commit is contained in:
Rapptz 2021-04-16 23:00:18 -04:00
parent ef9bb79e91
commit f6fcffbab5

@ -1052,7 +1052,8 @@ class Message(Hashable):
try:
allowed_mentions = fields.pop('allowed_mentions')
except KeyError:
pass
if self._state.allowed_mentions is not None:
fields['allowed_mentions'] = self._state.allowed_mentions.to_dict()
else:
if allowed_mentions is not None:
if self._state.allowed_mentions is not None: