diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 548a0fce..53168510 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -37,6 +37,7 @@ module.exports = class BanCommand extends Command { const modlogs = filterTopics(msg.guild.channels, 'modlog').first(); const { member, reason } = args; 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) { return msg.say('Your roles are too low to ban this member.'); diff --git a/commands/moderation/hackban.js b/commands/moderation/hackban.js index 2378d3c6..6051191d 100644 --- a/commands/moderation/hackban.js +++ b/commands/moderation/hackban.js @@ -37,6 +37,7 @@ module.exports = class HackbanCommand extends Command { const modlogs = filterTopics(msg.guild.channels, 'modlog').first(); const { id, reason } = args; if (id === msg.author.id) return msg.say('I don\'t think you want to ban yourself...'); + if (id === msg.guild.ownerID) return msg.say('Don\'t you think that might be betraying your leader?'); let user; try { user = await this.client.fetchUser(id); diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index d9f2a49f..496f0c1c 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -37,6 +37,7 @@ module.exports = class KickCommand extends Command { const modlogs = filterTopics(msg.guild.channels, 'modlog').first(); const { member, reason } = args; 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) { return msg.say('Your roles are too low to kick this member.'); diff --git a/commands/moderation/softban.js b/commands/moderation/softban.js index 9c67fa63..acce200c 100644 --- a/commands/moderation/softban.js +++ b/commands/moderation/softban.js @@ -37,6 +37,7 @@ module.exports = class SoftbanCommand extends Command { const modlogs = filterTopics(msg.guild.channels, 'modlog').first(); const { member, reason } = args; 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) { return msg.say('Your roles are too low to softban this member.'); diff --git a/commands/moderation/warn.js b/commands/moderation/warn.js index 15405af8..e38759c5 100644 --- a/commands/moderation/warn.js +++ b/commands/moderation/warn.js @@ -36,6 +36,7 @@ module.exports = class WarnCommand extends Command { const modlogs = filterTopics(msg.guild.channels, 'modlog').first(); const { member, reason } = args; if (member.id === msg.author.id) return msg.say('I don\'t think you want to warn 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 warnable. Perhaps they have a higher role than me?'); if (member.highestRole.calculatedPosition > msg.member.highestRole.calculatedPosition - 1) { return msg.say('Your roles are too low to warn this member.');