aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Law <[email protected]>2021-02-22 05:34:19 -0800
committerDanny <[email protected]>2021-02-23 03:39:08 -0500
commit48b748e340c75b4e93f29a12ff44d3e516b55ba1 (patch)
treebc3d968f2afc48c3b0873a2f0a9b627df4a7853e
parent[commands] Add Context.invoked_parents (diff)
downloaddiscord.py-48b748e340c75b4e93f29a12ff44d3e516b55ba1.tar.xz
discord.py-48b748e340c75b4e93f29a12ff44d3e516b55ba1.zip
[commands] properly assign ctx.invoked_with with ctx.
resolves #6461
-rw-r--r--discord/ext/commands/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py
index 45d96f2b..3bd27ea8 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