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

221
Visualizações
Discord.Js Bot to create invites for users

I need to figure out how to create an invite link for users so that they can track invites. Currently I have this, however this created the invite for the Bot.

const channel = client.channels.cache.find(channel => channel.id === config.server.channelId)
let invite = channel.createInvite({maxAge: 0, maxUses: 0});
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Specifically bots cannot create invites for users because each user (including bots) has their very own authorization token, so the only workaround here is by having a user token and calling an endpoint to create an invite, but sharing user tokens isn't very reliable and safe way, and this can be probably called for selfbotting (calling an endpoint with a user token directly, aka not in any of the apps).

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