From b2e0632553b4d559819dbba7655deeb26cd68f3c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 9 Jan 2016 12:24:01 -0500 Subject: [PATCH] [commands] Propagate invoked_with to subcommands. --- discord/ext/commands/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index b73f2ac84..5c755ed4e 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -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