channelignore fixes

This commit is contained in:
Erik 2020-09-01 23:03:30 +03:00
parent 3b53aa7fa7
commit 550481b786

View File

@ -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();