Browse Source

[commands] properly assign ctx.invoked_with with ctx.

resolves #6461
pull/6468/head
Sebastian Law 4 years ago
committed by Danny
parent
commit
48b748e340
  1. 2
      discord/ext/commands/context.py

2
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

Loading…
Cancel
Save