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