[V3] Standardize to ctx.send_help() (#1077)

This commit is contained in:
palmtree5
2017-11-05 09:09:02 -09:00
committed by Will
parent ef6dbee516
commit 32372ea237
6 changed files with 62 additions and 71 deletions

View File

@@ -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)