[V3] Verify checks for command groups (#1882)

This commit is contained in:
Michael H 2018-06-25 07:33:36 -04:00 committed by Toby Harradine
parent 3ece3a1f2b
commit d1f0b59b5d

View File

@ -141,7 +141,6 @@ class Group(Command, commands.Group):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
async def invoke(self, ctx): async def invoke(self, ctx):
view = ctx.view view = ctx.view
previous = view.index previous = view.index
view.skip_ws() view.skip_ws()
@ -154,6 +153,7 @@ class Group(Command, commands.Group):
if ctx.invoked_subcommand is None or self == ctx.invoked_subcommand: if ctx.invoked_subcommand is None or self == ctx.invoked_subcommand:
if self.autohelp and not self.invoke_without_command: if self.autohelp and not self.invoke_without_command:
await self._verify_checks(ctx)
await ctx.send_help() await ctx.send_help()
await super().invoke(ctx) await super().invoke(ctx)