From 69075312b1a886b616ad96818cb44d7fbc9faae5 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Thu, 19 Mar 2020 12:28:09 +0100 Subject: [PATCH] Let the owner ignore blocked command --- event/inhibitors/commandBlock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event/inhibitors/commandBlock.js b/event/inhibitors/commandBlock.js index 1608652..fc7d286 100644 --- a/event/inhibitors/commandBlock.js +++ b/event/inhibitors/commandBlock.js @@ -9,7 +9,7 @@ class commandblockInhibitor extends Inhibitor { } async exec(message, command) { - if (message.channel.type == 'dm') return false; + if (message.channel.type == 'dm' || message.author.id == this.client.ownerID) return false; const blacklist = await commandblock.findOne({where: {serverID:message.guild.id, command: command.id}}); if (blacklist) return true;