From 15983a8cdccffb085253f6c0fa03679fc5c2ce02 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 27 Apr 2020 19:39:40 +0200 Subject: [PATCH] Fix the blacklist search --- commands/owner/serverblacklist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/owner/serverblacklist.js b/commands/owner/serverblacklist.js index 3673979a..7d62c9f5 100644 --- a/commands/owner/serverblacklist.js +++ b/commands/owner/serverblacklist.js @@ -27,7 +27,7 @@ class serverBlacklistCommand extends Command { } async exec(message, args) { - const blacklist = await guildBlacklist.findOne({where: {guildID:message.author.id}}); + const blacklist = await guildBlacklist.findOne({where: {guildID:args.guildID}}); if (!blacklist) { const body = {guildID: args.guildID};