Fix the blacklist search

This commit is contained in:
loicbersier 2020-04-27 19:39:40 +02:00
parent de56815c3c
commit 15983a8cdc

View file

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