Skip to content
This repository was archived by the owner on May 8, 2023. It is now read-only.

Commit 5e2c920

Browse files
committed
Don't call retry if command prompt has default value.
discord-akairo#208
1 parent a50e347 commit 5e2c920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/struct/commands/arguments/Argument.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class Argument {
120120
const commandDefs = this.command.argumentDefaults;
121121
const handlerDefs = this.handler.argumentDefaults;
122122
const optional = choice(
123-
this.prompt && this.prompt.optional,
123+
this.default ? true : this.prompt && this.prompt.optional,
124124
commandDefs.prompt && commandDefs.prompt.optional,
125125
handlerDefs.prompt && handlerDefs.prompt.optional
126126
);

0 commit comments

Comments
 (0)