mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-05 19:37:25 +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)
|
||||
|
||||
if ctx.invoked_subcommand:
|
||||
ctx.invoked_with = trigger
|
||||
yield from ctx.invoked_subcommand.invoke(ctx)
|
||||
|
||||
# Decorators
|
||||
|
Loading…
x
Reference in New Issue
Block a user