mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
Support all Messageables in bot.embed_requested() (#5576)
* Support all Messageables in bot.embed_requested * Update usage in core * Simplify [p]contact This couldn't be done before this change. I have also simplified getting embed color. * Make `True` the new default for `check_permissions` kwarg
This commit is contained in:
@@ -721,9 +721,7 @@ class RedHelpFormatter(HelpFormatterABC):
|
||||
yield obj
|
||||
|
||||
async def embed_requested(self, ctx: Context) -> bool:
|
||||
return await ctx.bot.embed_requested(
|
||||
channel=ctx.channel, user=ctx.author, command=red_help, check_permissions=True
|
||||
)
|
||||
return await ctx.bot.embed_requested(channel=ctx.channel, command=red_help)
|
||||
|
||||
async def command_not_found(self, ctx, help_for, help_settings: HelpSettings):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user