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

281
Views
member cannot be mentioned in the embed discord.js v13

I was making a join and leave log system that returns a specific embed when someone joins/leaves the server. but when the bot sends the embed in the channel, the member is not mentioned.

My code:

client.on('guildMemberAdd', guildMember =>{

    const embed7 = new MessageEmbed()
    .setAuthor({name: `${guildMember.user.username}`, iconURL: guildMember.displayAvatarURL({dyanmic: true})})
    .addField(`<@${guildMember.id}>`, 'Joined the server')
    .addFields(
        {name: "**💳Member ID**", value: guildMember.id, inline: true},
        {name: "Joined Discord:", value: `<t:${parseInt(guildMember.user.createdTimestamp / 1000, 10)}:R>`, inline: true},
    )
    .setThumbnail(guildMember.displayAvatarURL({dynamic: true}))
    .setColor('GREEN')
    .setTimestamp()
    .setFooter({text: 'Join Log | PDM Building'})
    guildMember.guild.channels.cache.get('948686135264178206').send({embeds: [embed7]})
});
client.on('guildMemberRemove', guildMember => {
    const embed8 = new MessageEmbed()
    .setAuthor({name: guildMember.user.username, iconURL: guildMember.displayAvatarURL({dyanmic: true})})
    .setTitle(`<@${guildMember.user.id}> left the server`)
    .addField(`<@${guildMember.id}>`, 'Left the server')
    .setThumbnail(guildMember.displayAvatarURL({dynamic: true}))
    .setColor('RED')
    .setTimestamp()
    .setFooter({text: 'Leave Log | PDM Building'})
    guildMember.guild.channels.cache.get('948686135264178206').send({embeds: [embed8]})
  });

Notes: No one can see the channel that I am sending this embed to, just me and the bot

I am using discord.js v13 and node.js v16

enter image description here

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You cannot mention a user in an embed title or field header, you can't a mention user in the embed footer either.

You can do that in the embed description and field values only.

about 4 years ago · Santiago Trujillo 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!