I want to make an User Info command and I'm currently trying to add the function User joined Discord at
but with the current code I only get my exact time when I execute the command (see this link) and I don't know what to change in that command so it would work.
I'm using this package for the date.
case 'minfo':
const moment = require('moment')
const membed = new Discord.MessageEmbed()
.setColor('RANDOM')
.setThumbnail(message.member.displayAvatarURL())
.setTimestamp()
.addFields(
{name: 'User Name:', value: `${message.author}`},
{name: 'User ID:', value: `${message.author.id}`},
{name: 'Joined at', value: `${moment(message.author.joinedat).format('MMMM Do YYYY, h:mm:ss a')}`}
)
message.channel.send({embeds: [membed]})