mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
[commands] Propagate invoked_with to subcommands.
This commit is contained in:
parent
ec6b1997ad
commit
b2e0632553
@ -391,6 +391,7 @@ class Group(GroupMixin, Command):
|
|||||||
yield from self.callback(*ctx.args, **ctx.kwargs)
|
yield from self.callback(*ctx.args, **ctx.kwargs)
|
||||||
|
|
||||||
if ctx.invoked_subcommand:
|
if ctx.invoked_subcommand:
|
||||||
|
ctx.invoked_with = trigger
|
||||||
yield from ctx.invoked_subcommand.invoke(ctx)
|
yield from ctx.invoked_subcommand.invoke(ctx)
|
||||||
|
|
||||||
# Decorators
|
# Decorators
|
||||||
|
Loading…
x
Reference in New Issue
Block a user