diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 4ef9e9ce..6766feb3 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -36,7 +36,7 @@ module.exports = class BanCommand extends Command { if (member.id === msg.author.id) return msg.say('I don\'t think you want to ban yourself...'); if (member.id === msg.guild.ownerID) return msg.say('Don\'t you think that might be betraying your leader?'); if (!member.bannable) return msg.say('This member is not bannable. Perhaps they have a higher role than me?'); - if (member.highestRole.calculatedPosition > msg.member.highestRole.calculatedPosition - 1) { + if (member.highestRole.position > msg.member.highestRole.position - 1) { return msg.say('Your roles are too low to ban this member.'); } await msg.say(`Are you sure you want to ban ${member.user.tag} (${member.id})?`); diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index c1620f00..928fbac3 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -36,7 +36,7 @@ module.exports = class KickCommand extends Command { if (member.id === msg.author.id) return msg.say('I don\'t think you want to kick yourself...'); if (member.id === msg.guild.ownerID) return msg.say('Don\'t you think that might be betraying your leader?'); if (!member.kickable) return msg.say('This member is not kickable. Perhaps they have a higher role than me?'); - if (member.highestRole.calculatedPosition > msg.member.highestRole.calculatedPosition - 1) { + if (member.highestRole.position > msg.member.highestRole.position - 1) { return msg.say('Your roles are too low to kick this member.'); } await msg.say(`Are you sure you want to kick ${member.user.tag} (${member.id})?`); diff --git a/commands/moderation/softban.js b/commands/moderation/softban.js index 21371f5b..10e0a419 100644 --- a/commands/moderation/softban.js +++ b/commands/moderation/softban.js @@ -36,7 +36,7 @@ module.exports = class SoftbanCommand extends Command { if (member.id === msg.author.id) return msg.say('I don\'t think you want to softban yourself...'); if (member.id === msg.guild.ownerID) return msg.say('Don\'t you think that might be betraying your leader?'); if (!member.bannable) return msg.say('This member is not softbannable. Perhaps they have a higher role than me?'); - if (member.highestRole.calculatedPosition > msg.member.highestRole.calculatedPosition - 1) { + if (member.highestRole.position > msg.member.highestRole.position - 1) { return msg.say('Your roles are too low to softban this member.'); } await msg.say(`Are you sure you want to softban ${member.user.tag} (${member.id})?`); diff --git a/package.json b/package.json index 57c9580f..0caccf43 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "38.1.0", + "version": "38.1.1", "description": "Your personal server companion.", "main": "Shard.js", "scripts": {