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

242
Views
Unable to get users .joinedAt value

Trying to write an info command. I don't think I'm correctly getting the guild member to get the .joinedAt value, and I haven't been able to find a recent example. Here is the relevant code. Any help appreciated:

const user = await interaction.options.getUser("user").fetch(true);
embed.setTitle(`User info for ${user.username}`);
embed.addFields(
  { name: "User Tag:", value: `${user.tag}`, inline: true },
  { name: "User ID:", value: `${user.id}`, inline: true },
  { name: "Bot Status:", value: `${user.bot}`, inline: true },
  {
    name: "Account Creation Date:",
    value: `${user.createdAt}`,
    inline: false
  },
  // I'm trying to get the .joinedAt value here
  {
    name: "Guild Join Date:",
    value: `${interaction.message.guild.member(user).joinedAt}`,
    inline: false
  }
);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You are getting just common user using getUser instead of getMember which is server member

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!