Unknown Interaction on interaction.reply()
The error is in the given picture, im using discord.js v14, i don't know why this is happening
Code:
12 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!you need to use
deferReply
before doing the asynchronous tasks not right before replying
and after u use deferReply
u have to use editReply
or followUp
since deferring is actually a reply and u can't reply twice to a single interactioni only reply once, should i defer before every asynchronous task, or just before the first?
before the first
the
deferReply
method sends an initial reply just like the reply
method and since you can only reply once you can't use deferReply
multiple timescan i use
interaction.deferred
to make sure im not doing it multiple times?yep
i'll test it, can i let you know if i still get errors?
thank you in advance <3
yep
thank you
i should only use .deferReply before async stuff, not right before the reply, right?
yep
if you don't do anything asynchronous then you can just use
reply
understood, thx
hey, sry for bothering, but do u know why this is happening