From 73897078477511ee535543e6d968bb9e1ea5be6a Mon Sep 17 00:00:00 2001 From: BeatButton Date: Sun, 20 Mar 2022 00:55:48 -0600 Subject: [PATCH] Only send allowed_mentions if content changed --- discord/message.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/discord/message.py b/discord/message.py index 0bc9b6296..12783ea9a 100644 --- a/discord/message.py +++ b/discord/message.py @@ -1312,7 +1312,11 @@ class Message(Hashable): The newly edited message. """ - previous_allowed_mentions = self._state.allowed_mentions + if content is not MISSING: + previous_allowed_mentions = self._state.allowed_mentions + else: + previous_allowed_mentions = None + if suppress is not MISSING: flags = MessageFlags._from_value(self.flags.value) flags.suppress_embeds = suppress