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

View File

@ -1019,7 +1019,7 @@ class Message(Hashable):
else: else:
allowed_mentions = {'replied_user': mention_author} allowed_mentions = {'replied_user': mention_author}
fields['allowed_mentions'] = allowed_mentions 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() fields['allowed_mentions'] = self._state.allowed_mentions.to_dict()
if fields: if fields: