From 824d0a9b633cc0198ce6a325b3f0784f7add01d6 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Fri, 21 Jun 2024 20:40:58 +0200 Subject: [PATCH] Small fix to boolean automatic enums --- public/scripts/slash-commands/SlashCommandArgument.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/slash-commands/SlashCommandArgument.js b/public/scripts/slash-commands/SlashCommandArgument.js index 77f396dca..8cf16e820 100644 --- a/public/scripts/slash-commands/SlashCommandArgument.js +++ b/public/scripts/slash-commands/SlashCommandArgument.js @@ -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()(); } }