assign value
This commit is contained in:
parent
35393aa3ef
commit
e332907fa2
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "commandparser",
|
"name": "commandparser",
|
||||||
"version": "1.0.14",
|
"version": "1.0.15",
|
||||||
"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",
|
||||||
|
@ -85,6 +85,7 @@ class CommandOption implements ICommandOption {
|
|||||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||||
const func = this[OptionType[this.type]] as Function;
|
const func = this[OptionType[this.type]] as Function;
|
||||||
const result = await func.bind(this)();
|
const result = await func.bind(this)();
|
||||||
|
this.value = result.value;
|
||||||
return result as ParseResult;
|
return result as ParseResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user