From 1386bf31cadb8d1a2169e40113b30cf5578a4218 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 7 Apr 2020 00:17:36 +0200 Subject: [PATCH] fix blocking multiple commands --- commands/admin/commandblock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/admin/commandblock.js b/commands/admin/commandblock.js index 55dce2b..e54a972 100644 --- a/commands/admin/commandblock.js +++ b/commands/admin/commandblock.js @@ -30,7 +30,7 @@ class commandblockCommand extends Command { async exec(message, args) { if (args.command.id == 'commandblock') return message.channel.send('Whoa there, i can\'t let you block this command or else how would you unblock it?'); - const blocked = await commandblock.findOne({where: {serverID: message.guild.id}}); + const blocked = await commandblock.findOne({where: {serverID: message.guild.id, command: args.command.id}}); if (!blocked) { const body = {serverID: message.guild.id, command: args.command.id};