bugfix?
This commit is contained in:
parent
ebdadaaf19
commit
1722140225
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "commandparser",
|
||||
"version": "1.0.12",
|
||||
"version": "1.0.13",
|
||||
"description": "Parser meant to parse commands and their options for discord bots",
|
||||
"main": "build/index.js",
|
||||
"author": "Navy.gif",
|
||||
|
@ -84,7 +84,7 @@ class CommandOption implements ICommandOption {
|
||||
this.guild = guild;
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
const func = this[OptionType[this.type]] as Function;
|
||||
const result = await func();
|
||||
const result = await func.bind(this)();
|
||||
return result as ParseResult;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user