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

238
Views
How can I give a role to the bot?

I have created a role and want to give it to the bot. How can I do this? I have the role as var 'role'. I can't figure out how to give the bot itself a role, just other members.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

client.on('messageCreate', (message) => {
message.guild.members.cache.get("your bot id").roles.add("rol id")
})

Try this. When you post a message, you will add a role to your bot (discord v13). If you want an example for your case, post what you want exactly.

about 4 years ago · Juan Pablo Isaza Report
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!