assign value

This commit is contained in:
Erik 2022-07-29 20:09:28 +03:00
parent 35393aa3ef
commit e332907fa2
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "commandparser",
"version": "1.0.14",
"version": "1.0.15",
"description": "Parser meant to parse commands and their options for discord bots",
"main": "build/index.js",
"author": "Navy.gif",

View File

@ -85,6 +85,7 @@ class CommandOption implements ICommandOption {
// eslint-disable-next-line @typescript-eslint/ban-types
const func = this[OptionType[this.type]] as Function;
const result = await func.bind(this)();
this.value = result.value;
return result as ParseResult;
}