Skip to content
Snippets Groups Projects
Commit fd6fb865 authored by Reviath's avatar Reviath
Browse files

Update commands/ban.js, commands/kick.js files

parent 8ee45768
Branches main
No related tags found
No related merge requests found
......@@ -9,8 +9,8 @@ exports.run = async(client, message, args) => {
if(!reason){
reason = "Unspecified";
}
let authorHighestRole = message.member.highestRole.position;
let mentionHighestRole = user.highestRole.position;
let authorHighestRole = message.member.roles.highest.position;
let mentionHighestRole = user.roles.highest.position;
if(mentionHighestRole >= authorHighestRole) {
message.channel.send('You can`t ban members with equal or higher position');
......
......@@ -10,8 +10,8 @@ if (!message.member.hasPermission('KICK_MEMBERS')) return [message.channel.send(
if(!reason) {
reason = "Unspecified"
};
let authorHighestRole = message.member.highestRole.position;
let mentionHighestRole = user.highestRole.position;
let authorHighestRole = message.member.roles.highest.position;
let mentionHighestRole = user.roles.highest.position;
if(mentionHighestRole >= authorHighestRole) {
message.channel.send('You can`t kick members with equal or higher position');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment