From e332907fa254fc54a1a0b93be18a4af2522e710a Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 29 Jul 2022 20:09:28 +0300 Subject: [PATCH] assign value --- package.json | 2 +- src/classes/CommandOption.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; }