Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

4.5K
Views
¿Cómo obtengo la fecha de creación de un jugador mencionado [DISCORD.JS V13]?

Nota: estoy usando v13 de "discord.js".


Este es el comando que tengo actualmente:

 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


Así es como se dice el comando:

!check @Downrest


Bien, aquí está mi pregunta. ¿Cómo obtengo la fecha de creación de mentioned ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

De acuerdo con losdocumentos , puede ver en la clase de usuario que tiene una propiedad llamada createdAt que devuelve una fecha , por lo que mentioned.createdAt debería devolver la fecha de creación del usuario.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!