aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLilly Rose Berner <[email protected]>2020-12-09 02:42:26 +0100
committerGitHub <[email protected]>2020-12-08 20:42:26 -0500
commit08d632880a8e50851452f019ef2eb665c49e0826 (patch)
tree6d410122a978e5fc6298d11de3ba20e95607dde8
parent[commands] Added in missing channel links (diff)
downloaddiscord.py-08d632880a8e50851452f019ef2eb665c49e0826.tar.xz
discord.py-08d632880a8e50851452f019ef2eb665c49e0826.zip
Fix embed suppression when using client-wide allowed_mentions
-rw-r--r--discord/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/message.py b/discord/message.py
index fb033965..e6227cc9 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -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: