Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

217
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda