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 toolkit8mo 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
StanlehxOP8mo ago
[email protected] and node v21.5.0
Danial
Danial8mo ago
Add fetchReply: true when replying so it will return a Message, not InteractionResponse
Stanlehx
StanlehxOP8mo ago
Oh my god, thank you so much! That did the trick!
Want results from more Discord servers?
Add your server