[3.4] Make embeds in help output consistent (#5452) (#5507)

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

* Make embeds in help consistent regardless of why it's being sent
(cherry picked from commit ff7c146b62)

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
Red-GitHubBot
2021-12-31 02:03:11 +01:00
committed by GitHub
parent fb08cd0520
commit 1027d95092
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:
"""