Unknown Interaction. Not sure what the cause is
I'm using openai for chat gpt for general chat. It works sometimes and other times it does not. The error I'm getting is
4 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!Part two..
And the code to actually process the event is
What really stumps me is that I'll get the error 1 time, but another the command works fine and the console.log always returns the answer just not sure if I'm handling the interaction wrong or what's going on there.
Tag suggestion for @Estal:
Common causes of
DiscordAPIError[10062]: Unknown interaction
:
- Initial response took more than 3 seconds ➞ defer the response *.
- Wrong interaction object inside a collector.
- Two processes handling the same command (the first consumes the interaction, so it won't be valid for the other instance)
* Note: you cannot defer modal or autocomplete value responsesah; yeah; sometimes it does take more than three seconds, so tells me that that's probably what I need to read up on. Thanks @Danial 🐝