Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

244
Visualizações
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 Respostas
Responde à pergunta

0

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

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda