[ctx] Suppress all mentions in maybe_send_embed (#4192)

* [ctx] Suppress all mentions in maybe_send_embed

Whether this method should mention shouldn't be tied to an unrelated setting.

* black

* Update changelog_3_4_0.rst

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
zephyrkul
2020-08-17 16:20:03 -06:00
committed by GitHub
parent d8e780b228
commit 089c253d1d
2 changed files with 5 additions and 1 deletions

View File

@@ -255,7 +255,10 @@ class Context(DPYContext):
embed=discord.Embed(description=message, color=(await self.embed_colour()))
)
else:
return await self.send(message)
return await self.send(
message,
allowed_mentions=discord.AllowedMentions(everyone=False, roles=False, users=False),
)
@property
def clean_prefix(self) -> str: