aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/context.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py
index 5635542d..c250fc62 100644
--- a/discord/ext/commands/context.py
+++ b/discord/ext/commands/context.py
@@ -152,6 +152,7 @@ class Context(discord.abc.Messageable):
restart: bool
Whether to start the call chain from the very beginning
or where we left off (i.e. the command that caused the error).
+ The default is to start where we left off.
"""
cmd = self.command
view = self.view
@@ -166,8 +167,9 @@ class Context(discord.abc.Messageable):
if restart:
to_call = cmd.root_parent or cmd
- view.index = len(self.prefix) + 1
+ view.index = len(self.prefix)
view.previous = 0
+ view.get_word() # advance to get the root command
else:
to_call = cmd