Unknown Interaction Fiasco
Everything is latest and I have ensured to defer reply. No matter what I do, Discord.JS will sometimes return an "unknown interaction" error even if it knows the interaction (see image). it's not a hardware or network issue, and I have no idea how to fix it
23 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!it literally knows the interaction too as it replies
but somewhere along the way it forgets what the interaction is
albeit it this is incorrect and i need to fixi t
can you show the full code
this is probably a host/network issue, or whatever you are doing takes too long
but im deffering the reply
there is several http requests afterwards
but i thought as long as the reply is defered it can always be responded too
not always
it just gives you 15 minutes
but please show the full code
the error doesnt look to be in that code
your stack indicates its when using .reply()
i have the entire thing surrounded in a try catch
because i want it to always atleast reply to the user
regardless of the error
i do understand that .reply won't work if it's defered
yes
but the error was unknown interaction
and thats where your error is
you use .reply somewhere
show ce.js line 115
well if interaction returns false then interaction.reply wont work
...
and if interaction is null then i cant send a message to the channel
the unknown interaction means it took longer than 3s to reach that part
ya
but
hm
see this doesn't happen in kotlin
and that's why it can't be a host or network issue
all that error tells you is that it took longer than 3s for you to respond
and thats nothing djs cant do about, thats discords' api
😭