Fix embed suppression when using client-wide allowed_mentions

This commit is contained in:
Lilly Rose Berner
2020-12-08 20:42:26 -05:00
committed by GitHub
parent 0995d07727
commit 08d632880a
+1 -1
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: