Not getting the interaction reply message id

Hey there, im trying to get the message id from a interaction.reply, how would one tackle this? I am trying the following but with no succes:
const test = await interaction.reply(content);
const test = await interaction.reply(content);
This does not return the message id to me, just some random (i think) interaction id.
3 Replies
d.js toolkit
d.js toolkit6mo 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
Danial
Danial6mo ago
Pass in fetchReply to the object, so reply({ content, fetchReply: true }) and then it'll return the message from which you can access the id property
Mau
Mau6mo ago
Will give that a shot, one sec Worked! Thank you! PepeHappy