mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[V3] Standardize to ctx.send_help() (#1077)
This commit is contained in:
@@ -126,16 +126,6 @@ class RedBase(BotBase, RpcMethodMixin):
|
||||
return (not (admin_role or mod_role) or
|
||||
any(role.id in (mod_role, admin_role) for role in member.roles))
|
||||
|
||||
async def send_cmd_help(self, ctx):
|
||||
if ctx.invoked_subcommand:
|
||||
pages = await self.formatter.format_help_for(ctx, ctx.invoked_subcommand)
|
||||
for page in pages:
|
||||
await ctx.send(page)
|
||||
else:
|
||||
pages = await self.formatter.format_help_for(ctx, ctx.command)
|
||||
for page in pages:
|
||||
await ctx.send(page)
|
||||
|
||||
async def get_context(self, message, *, cls=RedContext):
|
||||
return await super().get_context(message, cls=cls)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user