G2A Many GEOs
SHARE
TWEET

vban & unvban

Mox-L Apr 10th, 2020 141 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on('message', rw => {
  2.   if (rw.content.startsWith('#vban')) {
  3. if (!rw.member.hasPermission("MOVE_MEMBERS")) return rw.channel.send("**YOU DONT HAVE PERMISSION** | ❎ ");
  4. let men = rw.mentions.users.first()
  5. let mas = rw.author
  6. if(!men) return rw.channel.send('**:rolling_eyes: - I cant find this member **');
  7. rw.guild.channels.forEach(c => {
  8. c.overwritePermissions(men.id, {
  9.           CONNECT: false
  10. })
  11.     })
  12. const embed = new Discord.RichEmbed()
  13. .setColor("RANDOM")
  14. .setDescription(`**
  15.  <@${men.id}>
  16. YOU CANT JOIN THE VOICE ROOM
  17. BANNER : <@${rw.author.id}> **`)
  18. .setThumbnail("https://image.flaticon.com/icons/svg/1810/1810742.svg")
  19.          
  20. client.users.get(men.id).sendEmbed(embed)
  21. const Embed11 = new Discord.RichEmbed()
  22. .setColor("RANDOM")
  23. .setAuthor(rw.guild.name, rw.guild.iconURL)
  24. .setDescription(`          <@${men.id}>
  25. BANNED
  26. BANNER : <@${rw.author.id}> `)
  27. .setThumbnail("https://image.flaticon.com/icons/svg/1810/1810742.svg")
  28. rw.channel.sendEmbed(Embed11).then(rw => {rw.delete(10000)})
  29.     }
  30. })
  31.  
  32.  //فكه
  33. client.on('message', rw => {
  34.   if (rw.content.startsWith('#unvban')) {
  35. if (!rw.member.hasPermission("MOVE_MEMBERS")) return rw.channel.send("**YOU DONT HAVE PERMISSION** | ❎ ");
  36.  let men = rw.mentions.users.first()
  37.  let mas = rw.author
  38.  if(!men) return rw.channel.send('`MANTION THE MEMBER `');
  39.  rw.guild.channels.forEach(c => {
  40.  c.overwritePermissions(men.id, {
  41.          CONNECT: true
  42.  })
  43.     })
  44. const embed = new Discord.RichEmbed()
  45. .setColor("RANDOM")
  46. .setDescription(`**
  47.  <@${men.id}>
  48.  Welcome Back
  49. Back With : <@${rw.author.id}> **`)
  50. .setThumbnail("https://image.flaticon.com/icons/svg/443/443138.svg")
  51.          
  52. client.users.get(men.id).sendEmbed(embed)
  53. const Embed11 = new Discord.RichEmbed()
  54. .setColor("RANDOM")
  55. .setAuthor(rw.guild.name, rw.guild.iconURL)
  56. .setDescription(`          <@${men.id}>
  57. GO FOR VOICE NOW
  58. With : <@${rw.author.id}>
  59. `)
  60. .setThumbnail("https://image.flaticon.com/icons/svg/443/443138.svg")
  61. rw.channel.sendEmbed(Embed11).then(rw => {rw.delete(15000)})
  62.     }
  63. })
RAW Paste Data
Ledger Nano X - The secure hardware wallet
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