From 16c8b51a559c3b97ce3a8a7e431f51d5d33b2943 Mon Sep 17 00:00:00 2001 From: agentdoesnotexist Date: Sun, 3 May 2020 23:03:28 +1000 Subject: [PATCH] now you cant hackban yourself --- src/commands/hackban.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/hackban.js b/src/commands/hackban.js index ff4d1cb..54e3d22 100644 --- a/src/commands/hackban.js +++ b/src/commands/hackban.js @@ -12,6 +12,10 @@ exports.run = async (client, message, args) => { return message.channel.send("<:error:466995152976871434> Invalid ID") } + if(message.author.id == args[0]) { + return message.channel.send("<:error:466995152976871434> Don't try and ban yourself.") + } + if(message.guild.member(args[0])) { if(!message.guild.member(args[0]).bannable) { return message.channel.send("<:error:466995152976871434> User is not bannable.")