From 925bb43b2ccff9d84c9c681b86e492e09b51cd17 Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Thu, 10 Oct 2024 18:13:56 +0200 Subject: [PATCH] guh --- 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 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()))