[commands] Propagate invoked_with to subcommands.

This commit is contained in:
Rapptz 2016-01-09 12:24:01 -05:00
parent ec6b1997ad
commit b2e0632553

View File

@ -391,6 +391,7 @@ class Group(GroupMixin, Command):
yield from self.callback(*ctx.args, **ctx.kwargs)
if ctx.invoked_subcommand:
ctx.invoked_with = trigger
yield from ctx.invoked_subcommand.invoke(ctx)
# Decorators