Use enumList for /fuzzy

This commit is contained in:
Cohee
2024-07-11 21:19:09 +03:00
parent c4aed23cf7
commit 4895b6def8

View File

@ -977,7 +977,7 @@ export function initDefaultSlashCommands() {
isRequired: false, isRequired: false,
defaultValue: 'first', defaultValue: 'first',
acceptsMultiple: false, acceptsMultiple: false,
enumProvider: () => [ enumList: [
new SlashCommandEnumValue('first', 'first match below the threshold', enumTypes.enum, enumIcons.default), new SlashCommandEnumValue('first', 'first match below the threshold', enumTypes.enum, enumIcons.default),
new SlashCommandEnumValue('best', 'best match below the threshold', enumTypes.enum, enumIcons.default), new SlashCommandEnumValue('best', 'best match below the threshold', enumTypes.enum, enumIcons.default),
], ],