From 99d0a59d752e7476a0c14419feb6fbc708b459a4 Mon Sep 17 00:00:00 2001 From: BluDood Date: Sat, 5 Nov 2022 20:22:16 +0100 Subject: [PATCH] Ignore case for tag suggestions --- autocomplete/tag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autocomplete/tag.js b/autocomplete/tag.js index aad19e0..076ae1a 100644 --- a/autocomplete/tag.js +++ b/autocomplete/tag.js @@ -5,7 +5,7 @@ module.exports = { async execute(interaction) { if (!['remove', 'get', 'edit'].includes(interaction.options.getSubcommand())) return const tags = tag.getAll() - const tagNames = Object.keys(tags).filter(name => name.includes(interaction.options.getFocused())) + const tagNames = Object.keys(tags).filter(name => name.toLowerCase().includes(interaction.options.getFocused().toLowerCase())) return interaction.respond(tagNames.map(tag => ({ name: tag, value: tag }))) } }