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
No description
23 Replies
d.js toolkit
d.js toolkit17mo 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!
capy
capyOP17mo ago
No description
capy
capyOP17mo ago
No description
capy
capyOP17mo ago
No description
capy
capyOP17mo ago
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
treble/luna
treble/luna17mo ago
can you show the full code this is probably a host/network issue, or whatever you are doing takes too long
capy
capyOP17mo ago
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
treble/luna
treble/luna17mo ago
not always it just gives you 15 minutes but please show the full code
capy
capyOP17mo ago
No description
capy
capyOP17mo ago
No description
capy
capyOP17mo ago
No description
treble/luna
treble/luna17mo ago
the error doesnt look to be in that code your stack indicates its when using .reply()
capy
capyOP17mo ago
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
treble/luna
treble/luna17mo ago
yes
capy
capyOP17mo ago
but the error was unknown interaction
treble/luna
treble/luna17mo ago
and thats where your error is you use .reply somewhere show ce.js line 115
capy
capyOP17mo ago
No description
capy
capyOP17mo ago
No description
capy
capyOP17mo ago
well if interaction returns false then interaction.reply wont work ... and if interaction is null then i cant send a message to the channel
treble/luna
treble/luna17mo ago
the unknown interaction means it took longer than 3s to reach that part
capy
capyOP17mo ago
ya but hm see this doesn't happen in kotlin and that's why it can't be a host or network issue
treble/luna
treble/luna17mo ago
shrug 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
capy
capyOP17mo ago
😭
Want results from more Discord servers?
Add your server