diff --git a/src/commands/fun/blacklist.js b/src/commands/fun/blacklist.js index 564705a..34253f5 100644 --- a/src/commands/fun/blacklist.js +++ b/src/commands/fun/blacklist.js @@ -76,7 +76,7 @@ module.exports = { const value = interaction.options.getFocused() ?? ""; const command = interaction.options.getSubcommand(true); if (command == "remove") { - const blacklist = ((await knex.select("blacklist").from("blacklists").where("user", interaction.user.id).first()).blacklist ?? "").trim().split(" "); + 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()))