Fix embed suppression when using client-wide allowed_mentions

This commit is contained in:
Lilly Rose Berner 2020-12-09 02:42:26 +01:00 committed by GitHub
parent 0995d07727
commit 08d632880a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1019,7 +1019,7 @@ class Message(Hashable):
else:
allowed_mentions = {'replied_user': mention_author}
fields['allowed_mentions'] = allowed_mentions
elif self._state.allowed_mentions is not None:
elif self._state.allowed_mentions is not None and self._state.self_id == self.author.id:
fields['allowed_mentions'] = self._state.allowed_mentions.to_dict()
if fields: