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

4.5K
Vistas
How do I get the creation date of a mentioned player [DISCORD.JS V13]

Note: I'm using v13 of "discord.js".


This is the command that I currently have:

if (command === 'check') {
    if (message.member.permissions.has(['KICK_MEMBERS'])) {
      let mentioned = message.mentions.users.first();
      let name = mentioned.username

      message.channel.send(`Account name: ${name}.`) 
      message.channel.send(`Account ID: ${mentioned.user.}`)

    } else if (!message.member.permissions.has(
    ['KICK_MEMBERS'])) {
      message.channel.send('You do not have permissions to do this command!')

    } else {
      message.channel.send('An error has occured while attempting to run the command.') 
    }   }

The let mentioned = message.mentions.users.first(); gets the mentioned user


This is how you say the command:

!check @Downrest


Okay, so here's my question. How do I get the creation date of mentioned?

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

0

According to the docs, you can see in the User class that you have a property called createdAt that returns a Date, so mentioned.createdAt should return the creation date of the user.

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