Fix Message.edit ignoring suppress kwarg

This commit is contained in:
Eric Schneider 2022-03-11 00:56:42 +01:00 committed by GitHub
parent 0ea6fdac5a
commit ef92170a9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1306,6 +1306,7 @@ class Message(Hashable):
previous_allowed_mentions = self._state.allowed_mentions
if suppress is not MISSING:
flags = MessageFlags._from_value(self.flags.value)
flags.suppress_embeds = suppress
else:
flags = MISSING