Sir_Spaceboi

UT

Nov 15th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. const userTimeout = message.mentions.members.first();
  2. const timeoutRole = message.guild.roles.cache.find(role => role.name === 'Timeout');
  3.  
  4. if (userTimeout.roles.cache.has('765313022457151528')) {
  5.  
  6. userTimeout.roles.remove(timeoutRole)
  7.  
  8. userTimeout.roles.add('754425658343686367')
  9.  
  10. message.reply(`${userTimeout} has access to VCs now!`)
  11. } else
  12. message.reply('That user is not timedout!')
  13. }
Advertisement
Add Comment
Please, Sign In to add comment