Small fix to boolean automatic enums

This commit is contained in:
Wolfsblvt 2024-06-21 20:40:58 +02:00
parent 3ab5cc1766
commit 824d0a9b63
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ export class SlashCommandArgument {
this.forceEnum = forceEnum;
// If no enums were set explictly and the type is one where we know possible enum values, we set them here
if (!this.enumList.length && types == ARGUMENT_TYPE.BOOLEAN) this.enumList = commonEnumProviders.boolean()();
if (!this.enumList.length && this.typeList.includes(ARGUMENT_TYPE.BOOLEAN)) this.enumList = commonEnumProviders.boolean()();
}
}