Let the owner ignore blocked command
This commit is contained in:
parent
3873ba86de
commit
69075312b1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue