ctx.invoked_subcommand
always return None even though i called a subcommand
this my was code
@commands.hybrid_group(invoke_without_command=True)
async def foo(self, ctx: commands.Context) -> None:
print(ctx.invoked_subcommand)
@foo.command()
async def a(self, ctx: commands.Context) -> None:
print(ctx.invoked_subcommand)
I called !foo a
and gets None as usual
I know this post is a duplicate but i’ve checked other posts and None of them solved the problem