Make embeds in help output consistent (#5452)

* Add `check_permissions` kwarg to `bot.embed_requested()`

* Make embeds in help consistent regardless of why it's being sent
This commit is contained in:
jack1142
2021-12-31 02:01:23 +01:00
committed by GitHub
parent faab711ec8
commit ff7c146b62
3 changed files with 27 additions and 10 deletions

View File

@@ -239,9 +239,9 @@ class Context(DPYContext):
bool:
:code:`True` if an embed is requested
"""
if self.guild and not self.channel.permissions_for(self.guild.me).embed_links:
return False
return await self.bot.embed_requested(self.channel, self.author, command=self.command)
return await self.bot.embed_requested(
self.channel, self.author, command=self.command, check_permissions=True
)
async def maybe_send_embed(self, message: str) -> discord.Message:
"""