Compare commits
2 Commits
34445b6422
...
cdab7930cd
Author | SHA1 | Date | |
---|---|---|---|
cdab7930cd | |||
6005e0735f |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "commandparser",
|
"name": "commandparser",
|
||||||
"version": "1.0.25",
|
"version": "1.1.0",
|
||||||
"description": "Parser meant to parse commands and their options for discord bots",
|
"description": "Parser meant to parse commands and their options for discord bots",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"author": "Navy.gif",
|
"author": "Navy.gif",
|
||||||
@ -17,6 +17,7 @@
|
|||||||
"build"
|
"build"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "tsc",
|
||||||
"release": "tsc && yarn publish"
|
"release": "tsc && yarn publish"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ class CommandOption implements ICommandOption {
|
|||||||
this.choices = def.choices || [];
|
this.choices = def.choices || [];
|
||||||
|
|
||||||
this.strict = def.strict || false;
|
this.strict = def.strict || false;
|
||||||
this.type = def.type || OptionType.STRING;
|
this.type = def.type ?? OptionType.STRING;
|
||||||
this.flag = def.flag || false;
|
this.flag = def.flag || false;
|
||||||
|
|
||||||
this.valueOptional = def.valueOptional || false;
|
this.valueOptional = def.valueOptional || false;
|
||||||
|
Loading…
Reference in New Issue
Block a user