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
Discordjs: How can I calculate a server or users time since joining?

Basicly I want to somehow calculate a server or users time since joining discord.

I was looking at both createdAt and timestamps but I'm not sure how could I get the time either in hour or days format. I want to make an info embed which can show how long the user or guild is on discord. How could I make it? The bot is in JavaScript in Discordjs v13.

Something like:

"Guild created 6 month and 5 days ago"

"User joined discord 3 month and 10 days ago"

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

0

Just use discord unix timestamps and Message, so like:

const embed = new MessageEmbed()
.setTitle("Guild Info")
.setDescription(`**Guild Created:** <t:${Math.floor(message.guild.createdTimestamp / 1000)}:R>`)
message.channel.send({
embeds: [embed]
})

and same for user, hope this helps

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