This commit is contained in:
Ashley Graves 2024-10-10 18:15:05 +02:00
parent bd11475896
commit 20e4772015

View file

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