mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Fix for Mod Commands?
This commit is contained in:
@@ -15,6 +15,7 @@ module.exports = class BanCommand extends commando.Command {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
hasPermission(msg) {
|
hasPermission(msg) {
|
||||||
|
if (msg.channel.type === 'dm') return;
|
||||||
return msg.member.hasPermission('BAN_MEMBERS');
|
return msg.member.hasPermission('BAN_MEMBERS');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ module.exports = class KickCommand extends commando.Command {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
hasPermission(msg) {
|
hasPermission(msg) {
|
||||||
|
if (msg.channel.type === 'dm') return;
|
||||||
return msg.member.hasPermission('KICK_MEMBERS');
|
return msg.member.hasPermission('KICK_MEMBERS');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ module.exports = class WarnCommand extends commando.Command {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
hasPermission(msg) {
|
hasPermission(msg) {
|
||||||
|
if (msg.channel.type === 'dm') return;
|
||||||
return msg.member.hasPermission('MANAGE_MESSAGES');
|
return msg.member.hasPermission('MANAGE_MESSAGES');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user