[commands] properly assign ctx.invoked_with with ctx.

resolves #6461
This commit is contained in:
Sebastian Law 2021-02-22 05:34:19 -08:00 committed by Danny
parent 1afc127458
commit 48b748e340

View File

@ -190,7 +190,7 @@ class Context(discord.abc.Messageable):
view.index = len(self.prefix)
view.previous = 0
self.invoked_parents = []
view.get_word() # advance to get the root command
self.invoked_with = view.get_word() # advance to get the root command
else:
to_call = cmd