Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

108
Views
discord.js - remove a specific role

I made a script to remove and add a specific role to all members of a server, but my concern and with the rate limit, can someone give me an idea of ​​how I can "limit" the removal of roles so that I don't have problems?

msg.guild.members.cache.forEach(member => {
member.roles.add(msg.mentions.roles.first().id).catch(e =>console.log(`Não foi possivel dar cargo para ${member.user.tag}`));
console.log(`adicionei o carpo pra um cara`)
})
channel = client.channels.cache.get(tempVars("ChannelID"));
channel.send('Terminei de adicionar o cargo aos membros do servidor');
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!