Handle interaction after restart
Hello, I am making a restart command. It sends a message saying it is restarting. When it has restarted, I want it to edit the message to say it has restarted.
I was thinking of doing something along the lines of this:
And then I would have to fetch the interaction on
client.ready
. Is there any way to do so?
Thanks!6 Replies
- 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 stafffyi
interaction.sendEmbed
is a custom method I created, it just sends an embed with some default values and returns the InteractionResponse
you cannot fetch interaction responses, only messages
It's a user app, so that'll probably not work
to do that, you need to pass in
withResponse: true
when replying
then this also isnt gonna work, you would need to store the token of the interaction, then create a webhook client to edi titthat sounds like too much work lmao
thanks for the info tho!