How can i tag the message sender

if(interaction.commandName === 'vouch'){
const embed = new EmbedBuilder()
.setTitle("Vouch!")
.setDescription(`It would be nice if you can leave a vouch! <#1215852789947830334>\nadd picture + tag ${} on it!.`)
.setColor("#00ff00")
.setFooter({
text: ":two_hearts:",
});
interaction.reply({ embeds: [embed] });
}
if(interaction.commandName === 'vouch'){
const embed = new EmbedBuilder()
.setTitle("Vouch!")
.setDescription(`It would be nice if you can leave a vouch! <#1215852789947830334>\nadd picture + tag ${} on it!.`)
.setColor("#00ff00")
.setFooter({
text: ":two_hearts:",
});
interaction.reply({ embeds: [embed] });
}
6 Replies
d.js toolkit
d.js toolkit9mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Zenyd
ZenydOP9mo ago
how can i tag the user that sent the message in the embed description?
Spaxter
Spaxter9mo ago
<@{user id}>
Zenyd
ZenydOP9mo ago
yea but how can i get the message sender?
Spaxter
Spaxter9mo ago
interaction.user
Zenyd
ZenydOP9mo ago
thanks alot man
Want results from more Discord servers?
Add your server