[commands] Fix bug with Context.command not updating in groups.
This happened when `invoke_without_command` was set to True.
This commit is contained in:
parent
74cfc53bc8
commit
1228159f30
@ -648,6 +648,7 @@ class Group(GroupMixin, Command):
|
|||||||
# undo the trigger parsing
|
# undo the trigger parsing
|
||||||
view.index = previous
|
view.index = previous
|
||||||
view.previous = previous
|
view.previous = previous
|
||||||
|
ctx.command = self
|
||||||
self._verify_checks(ctx)
|
self._verify_checks(ctx)
|
||||||
yield from self._parse_arguments(ctx)
|
yield from self._parse_arguments(ctx)
|
||||||
injected = inject_context(ctx, self.callback)
|
injected = inject_context(ctx, self.callback)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user