Reacting after Interaction Reply with Embed

I have checked the document and from what I understand, I need to code it like this const message = await interaction.reply({ embeds: [voteEmbed], files: [file] }); message.react('🍎') .then(() => message.react('🍊')) .then(() => message.react('🍇')) but however it says message.react is not a function.
4 Replies
d.js toolkit
d.js toolkit3mo 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
Stanlehx
Stanlehx3mo ago
discord.js@14.8.0 and node v21.5.0
Danial
Danial3mo ago
Add fetchReply: true when replying so it will return a Message, not InteractionResponse
Stanlehx
Stanlehx3mo ago
Oh my god, thank you so much! That did the trick!