channelignore fixes
This commit is contained in:
parent
3b53aa7fa7
commit
550481b786
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user