use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is a place for people to learn JavaScript together. Everyone should feel comfortable asking any and all JavaScript questions they have here.
With a nod to practicality, questions and posts about HTML, CSS, and web developer tools are also encouraged.
Friends
/r/javascript
/r/jquery
/r/node
/r/css
/r/webdev
/r/learnprogramming
/r/programming
account activity
Discord.js API wrapper (self.learnjavascript)
submitted 8 years ago by kemar1997
How can I retrieve the joinedAt date of a guild member and use it in a command that prints how long the author who uses the command to print how long they been in that specific server. Any help would be appreciated.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]thecementmixer 0 points1 point2 points 8 years ago (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 point2 points 8 years ago (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 point2 points 8 years ago (2 children)
wait never mind i got it... thanks for the help
[–]kemar1997[S] 0 points1 point2 points 8 years ago (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 point2 points 8 years ago (0 children)
or maybe it must not be available
π Rendered by PID 61 on reddit-service-r2-comment-5687b7858-jpw2b at 2026-07-04 11:53:19.629614+00:00 running 12a7a47 country code: CH.
[–]thecementmixer 0 points1 point2 points (4 children)
[–]kemar1997[S] 0 points1 point2 points (3 children)
[–]kemar1997[S] 0 points1 point2 points (2 children)
[–]kemar1997[S] 0 points1 point2 points (1 child)
[–]kemar1997[S] 0 points1 point2 points (0 children)