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); }