Fix embed suppression when using client-wide allowed_mentions
This commit is contained in:
parent
0995d07727
commit
08d632880a
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user