aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: