Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

205
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda