guh
This commit is contained in:
parent
aca0882b21
commit
925bb43b2c
1 changed files with 1 additions and 1 deletions
|
@ -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()))
|
||||
|
|
Loading…
Reference in a new issue