[Core] Use autohelp properly in local blacklist/whitelist (#2042)

This commit is contained in:
Michael H 2018-08-22 21:22:03 -04:00 committed by Toby Harradine
parent 1fd8a8e0a6
commit aa69dd381f

View File

@ -1401,8 +1401,7 @@ class Core(CoreLogic):
""" """
Whitelist management commands. Whitelist management commands.
""" """
if ctx.invoked_subcommand is None: pass
await ctx.send_help()
@localwhitelist.command(name="add") @localwhitelist.command(name="add")
async def localwhitelist_add(self, ctx, *, user_or_role: str): async def localwhitelist_add(self, ctx, *, user_or_role: str):
@ -1484,8 +1483,7 @@ class Core(CoreLogic):
""" """
blacklist management commands. blacklist management commands.
""" """
if ctx.invoked_subcommand is None: pass
await ctx.send_help()
@localblacklist.command(name="add") @localblacklist.command(name="add")
async def localblacklist_add(self, ctx, *, user_or_role: str): async def localblacklist_add(self, ctx, *, user_or_role: str):