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

317
Vistas
Is there a way to get discord user information (avatar, account creation date, etc.) from users that are NOT in the same guild as my bot?

I want to add a command to my bot which shows a user's avatar and account creation date by entering their user id. While trying to do so i noticed that when using discord.js the user must be in at least one guild the bot is in too.

Is there any way to get user information just by a user's id?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Yes, you can. Simply use client.users.fetch() with the force option set to true.

client.users.fetch("id", { force: true }); returns a promise as stated on the docs, you can either use async-await or .then() to get the user and its information.

A lot of people seem to skip past the force option, which is documented in the BaseFetchOptions section.

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