SHARE
TWEET

Untitled

a guest Jun 25th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         if(command === `${prefix}kick`) {
  2.  
  3.             var kickUser = message.guild.member(message.mentions.user.first() || message.guild.members(arguments[0]));
  4.  
  5.             if (!kickUser) return message.channel.send("De speler die je wilde kicken is niet gevonden!");
  6.  
  7.             var reason = arguments.join(" ").slice(22);
  8.  
  9.             if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send("Je hebt hier een permisions voor!");
  10.  
  11.             if(!kickUser.hasPermission("MANAGE_MESSAGES")) return message.channel.send("Je kan geen andere staff-leden kicken!");
  12.  
  13.             var kick = new discord.RichEmbed()
  14.             .setTitle("KICK")
  15.             .setColor("ee0000")
  16.             .addField("Gekicked :", kickUser)
  17.             .addField("Gekickd door :", message.author)
  18.             .addField("Reden :", reason);
  19.  
  20.             var kickChannel = message.guild.channels.find(`name`, "banhammer");
  21.             if (!kickChannel) return message.guild.send("Geen BANHAMMER Channel gevonden, maak er een aan!");
  22.  
  23.             message.guild.member(kickUser).kick(reason);
  24.  
  25.             kickChannel.send(kick);
  26.                
  27.             return;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top