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