Compare commits
2 Commits
34445b6422
...
cdab7930cd
Author | SHA1 | Date | |
---|---|---|---|
cdab7930cd | |||
6005e0735f |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "commandparser",
|
||||
"version": "1.0.25",
|
||||
"version": "1.1.0",
|
||||
"description": "Parser meant to parse commands and their options for discord bots",
|
||||
"main": "build/index.js",
|
||||
"author": "Navy.gif",
|
||||
@ -17,6 +17,7 @@
|
||||
"build"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"release": "tsc && yarn publish"
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user