From cdab7930cd47b61c1fc21b8daf57c3809d81a6dd Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 12 Feb 2023 16:20:28 +0200 Subject: [PATCH] bugfix --- src/classes/CommandOption.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/CommandOption.ts b/src/classes/CommandOption.ts index c8a3468..efba9fd 100644 --- a/src/classes/CommandOption.ts +++ b/src/classes/CommandOption.ts @@ -57,7 +57,7 @@ class CommandOption implements ICommandOption { this.choices = def.choices || []; this.strict = def.strict || false; - this.type = def.type || OptionType.STRING; + this.type = def.type ?? OptionType.STRING; this.flag = def.flag || false; this.valueOptional = def.valueOptional || false;