daily pastebin goal
72%
SHARE
TWEET

Untitled

a guest Feb 16th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let role = message.guild.roles.find(r => r.name == 'Community')
  2.  
  3. if (!role) return message.channel.send(`**${message.author.username}**, role not found`)
  4.  
  5. message.guild.members.filter(m => !m.user.bot).forEach(member => member.addRole(role))
  6. message.channel.send(`**${message.author.username}**, role **${role.name}** was added to all members`)
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