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

203
Views
Why does the guilds.join scope exist?

I was wondering what the use of the guilds.join scope is, and can you show some examples of how to use it? I'm just curious of what people use this for.

Can I use it to join my bot support server?

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

0

guilds.join allows you to add the user who used the URL to a guild the bot is in. Note the bot does need CREATE_INSTANT_INVITE permissions in that guild.

You will need a URL like this:

https://discord.com/api/oauth2/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&response_type=token&scope=guilds.join

Now when they authorize, the URL they got redirected to, specified as the redirect URI, will have a URL parameter that has the access token. You can use this with the discord.js function GuildMemberManager#add(), which works like this:

guild.members.add(userId, { accessToken: "ACCESS_TOKEN" })
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!