mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-09 23:39:50 +00:00
parent
250f29989b
commit
09f432016c
@ -826,6 +826,7 @@ class Command(_BaseCommand):
|
|||||||
# since we're in a regular command (and not a group) then
|
# since we're in a regular command (and not a group) then
|
||||||
# the invoked subcommand is None.
|
# the invoked subcommand is None.
|
||||||
ctx.invoked_subcommand = None
|
ctx.invoked_subcommand = None
|
||||||
|
ctx.subcommand_passed = None
|
||||||
injected = hooked_wrapped_callback(self, ctx, self.callback)
|
injected = hooked_wrapped_callback(self, ctx, self.callback)
|
||||||
await injected(*ctx.args, **ctx.kwargs)
|
await injected(*ctx.args, **ctx.kwargs)
|
||||||
|
|
||||||
@ -1259,6 +1260,7 @@ class Group(GroupMixin, Command):
|
|||||||
|
|
||||||
async def invoke(self, ctx):
|
async def invoke(self, ctx):
|
||||||
ctx.invoked_subcommand = None
|
ctx.invoked_subcommand = None
|
||||||
|
ctx.subcommand_passed = None
|
||||||
early_invoke = not self.invoke_without_command
|
early_invoke = not self.invoke_without_command
|
||||||
if early_invoke:
|
if early_invoke:
|
||||||
await self.prepare(ctx)
|
await self.prepare(ctx)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user