From 4895b6def89057dcf12ecdc14854eaea4788c3e3 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 11 Jul 2024 21:19:09 +0300 Subject: [PATCH] Use enumList for /fuzzy --- public/scripts/slash-commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index e79ae9b31..71d8c894a 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -977,7 +977,7 @@ export function initDefaultSlashCommands() { isRequired: false, defaultValue: 'first', acceptsMultiple: false, - enumProvider: () => [ + enumList: [ new SlashCommandEnumValue('first', 'first match below the threshold', enumTypes.enum, enumIcons.default), new SlashCommandEnumValue('best', 'best match below the threshold', enumTypes.enum, enumIcons.default), ],