Anyone can help me?

const embed = new Discord.EmbedBuilder()
.setColor(config.MainColor)
.setDescription(`New playlist to the queue\n**Playlist:** ${playlist.name} (${playlist.songs.length} songs)`)
.setFooter({
text: `Commanded by ${playlist.songs[0].user.tag}`,
iconURL: playlist.songs[0].user.displayAvatarURL({ size: 1024 })
});
const embed = new Discord.EmbedBuilder()
.setColor(config.MainColor)
.setDescription(`New playlist to the queue\n**Playlist:** ${playlist.name} (${playlist.songs.length} songs)`)
.setFooter({
text: `Commanded by ${playlist.songs[0].user.tag}`,
iconURL: playlist.songs[0].user.displayAvatarURL({ size: 1024 })
});
How can I show the username of my discord server instead user.tag?
5 Replies
d.js toolkit
d.js toolkit12mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
d.js docs
d.js docs12mo ago
property User#username The username of the property Guild#name The name of this guild
treble/luna
treble/luna12mo ago
Idk which one you mean
d.js docs
d.js docs12mo ago
property GuildMember#displayName The nickname of this member, or their username if they don't have one
Shivas
Shivas12mo ago
Ok will read this, thank you!