We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39ae4a3 commit 29543edCopy full SHA for 29543ed
1 file changed
redbot/core/commands/commands.py
@@ -809,7 +809,9 @@ async def invoke(self, ctx: "Context"):
809
if self.autohelp and not self.invoke_without_command:
810
if not await self.can_run(ctx, change_permission_state=True):
811
raise CheckFailure()
812
- await ctx.send_help()
+ # This ordering prevents sending help before checking `before_invoke` hooks
813
+ await super().invoke(ctx)
814
+ return await ctx.send_help()
815
elif self.invoke_without_command:
816
# So invoke_without_command when a subcommand of this group is invoked
817
# will skip the the invokation of *this* command. However, because of
0 commit comments