aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-16 23:00:18 -0400
committerRapptz <[email protected]>2021-04-16 23:00:18 -0400
commitf6fcffbab502e3f424e0f5b169a56491af34207d (patch)
treeff31bac8251cbd9106817419a51f2fdf2c6a7309 /discord/message.py
parent[tasks] Move the Loop's sleep to be before exit conditions (diff)
downloaddiscord.py-f6fcffbab502e3f424e0f5b169a56491af34207d.tar.xz
discord.py-f6fcffbab502e3f424e0f5b169a56491af34207d.zip
Use default allowed_mentions in Message.edit
Fix #6745
Diffstat (limited to 'discord/message.py')
-rw-r--r--discord/message.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/message.py b/discord/message.py
index eadd03e5..e434562c 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -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: