From 20e477201506de27d524eb01a170dd90ed261311 Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Thu, 10 Oct 2024 18:15:05 +0200 Subject: [PATCH] ghe8t4ui --- src/commands/fun/blacklist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/fun/blacklist.js b/src/commands/fun/blacklist.js index 5b171c8..4e971b5 100644 --- a/src/commands/fun/blacklist.js +++ b/src/commands/fun/blacklist.js @@ -79,7 +79,7 @@ module.exports = { const blacklist = ((await knex.select("blacklist").from("blacklists").where("user", interaction.user.id).first()) ?? { blacklist: '' }).blacklist.trim().split(" "); const choices = []; for (const tag of blacklist) { - if (value == "" || tag.startsWith(value.trim())) + if (tag != "" && (value == "" || tag.startsWith(value.trim()))) choices.push(tag); }