Check if mod actions are on the owner

This commit is contained in:
Daniel Odendahl Jr
2017-08-18 11:23:38 +00:00
parent 624746d75f
commit 5b06d78f89
5 changed files with 5 additions and 0 deletions
+1
View File
@@ -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);