From 550481b786fb62faddd3b2bbb4ca1def6426fb76 Mon Sep 17 00:00:00 2001 From: Navy Date: Tue, 1 Sep 2020 23:03:30 +0300 Subject: [PATCH] channelignore fixes --- structure/client/components/inhibitors/ChannelIgnore.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/structure/client/components/inhibitors/ChannelIgnore.js b/structure/client/components/inhibitors/ChannelIgnore.js index 9803025..305391e 100644 --- a/structure/client/components/inhibitors/ChannelIgnore.js +++ b/structure/client/components/inhibitors/ChannelIgnore.js @@ -7,17 +7,18 @@ class ChannelIgnore extends Inhibitor { super(client, { name: 'channelIgnore', priority: 5, - guild: true + guild: true, + silent: true }); } - execute(message, command) { + execute(message) { if(message.member.admin) return super._succeed(); const { guild, member, channel } = message, - setting = guild._settings.ignore, + setting = guild._settings.ignoreChannels, roles = member.roles.cache.map((r) => r.id); if(!setting.enabled) return super._succeed();