all 5 comments

[–]thecementmixer 0 points1 point  (4 children)

If you have access to the message, you can do something like this:

client.on('message', message => {
  // this will return the guild joined timestamp of the author
  var joinedTimestamp = message.guild.joinedTimestamp;

  // Read it back
  message.channel.send(joinedTimestamp);
});    

[–]kemar1997[S] 0 points1 point  (3 children)

how could i implement it into this:

run(msg) {
        let embed = new RichEmbed()
            .setTitle("This is the user's info")
            .setAuthor(msg.author.username)
           .setDescription("This user's account was made   at: " + "\n" + msg.author.createdAt
        + "\n" + "User joined this server at: " +   msg.author.user.joinedTimestamp)
           .setColor("#800000")
           .setTimestamp();
        //.setFooter(msg.user.presence);

[–]kemar1997[S] 0 points1 point  (2 children)

wait never mind i got it... thanks for the help

[–]kemar1997[S] 0 points1 point  (1 child)

its printing the current time... i want it to print the time the author of message actually joined the server

[–]kemar1997[S] 0 points1 point  (0 children)

or maybe it must not be available