mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 17:32:31 -05:00
* 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:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user