Browse Source

Only send allowed_mentions if content changed

pull/7732/head
BeatButton 3 years ago
committed by GitHub
parent
commit
7389707847
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      discord/message.py

6
discord/message.py

@ -1312,7 +1312,11 @@ class Message(Hashable):
The newly edited message. 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: if suppress is not MISSING:
flags = MessageFlags._from_value(self.flags.value) flags = MessageFlags._from_value(self.flags.value)
flags.suppress_embeds = suppress flags.suppress_embeds = suppress

Loading…
Cancel
Save