diff --git a/package.json b/package.json index 6237f67..2c10dcf 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/classes/CommandOption.ts b/src/classes/CommandOption.ts index f4eef2b..986b61c 100644 --- a/src/classes/CommandOption.ts +++ b/src/classes/CommandOption.ts @@ -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; }