Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const userTimeout = message.mentions.members.first();
- const timeoutRole = message.guild.roles.cache.find(role => role.name === 'Timeout');
- if (userTimeout.roles.cache.has('765313022457151528')) {
- userTimeout.roles.remove(timeoutRole)
- userTimeout.roles.add('754425658343686367')
- message.reply(`${userTimeout} has access to VCs now!`)
- } else
- message.reply('That user is not timedout!')
- }
Advertisement
Add Comment
Please, Sign In to add comment