[V3] Custom context class (#988)

* Create custom context class

* Documentation

* Remove old help method, replace with new

* Update from rebase
This commit is contained in:
Tobotimus
2017-10-16 12:02:51 +11:00
committed by Will
parent 36b3fbd5bc
commit 86b18c702c
14 changed files with 78 additions and 32 deletions

View File

@@ -164,7 +164,7 @@ class CustomCommands:
ctx: commands.Context):
"""Custom commands management"""
if not ctx.invoked_subcommand:
await self.bot.send_cmd_help(ctx)
await ctx.send_help()
@customcom.group(name="add")
@checks.mod_or_permissions(administrator=True)
@@ -176,7 +176,7 @@ class CustomCommands:
"""
if not ctx.invoked_subcommand or isinstance(ctx.invoked_subcommand,
commands.Group):
await self.bot.send_cmd_help(ctx)
await ctx.send_help()
@cc_add.command(name='random')
@checks.mod_or_permissions(administrator=True)