From 48b748e340c75b4e93f29a12ff44d3e516b55ba1 Mon Sep 17 00:00:00 2001 From: Sebastian Law <44045823+SebbyLaw@users.noreply.github.com> Date: Mon, 22 Feb 2021 05:34:19 -0800 Subject: [PATCH] [commands] properly assign ctx.invoked_with with ctx. resolves #6461 --- discord/ext/commands/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index 45d96f2b9..3bd27ea85 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -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