diff options
| author | Rapptz <[email protected]> | 2016-01-09 12:24:01 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-09 12:24:01 -0500 |
| commit | b2e0632553b4d559819dbba7655deeb26cd68f3c (patch) | |
| tree | 3959e8e2c2979d53e840e3601e9d1206dcff5041 | |
| parent | [commands] Add support for cogs. (diff) | |
| download | discord.py-b2e0632553b4d559819dbba7655deeb26cd68f3c.tar.xz discord.py-b2e0632553b4d559819dbba7655deeb26cd68f3c.zip | |
[commands] Propagate invoked_with to subcommands.
| -rw-r--r-- | discord/ext/commands/core.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index b73f2ac8..5c755ed4 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 |