Unknown Interaction
for some reason I keep getting this error when trying to run a command, this only happens sometimes.
22 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 OPCommon 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 responses^^ most likely the first
every time i try to defer the response i get a interaction already replied error.
after a defer you need to use editReply, not reply or update
since the defer is a reply by itself
Let me try that quickly.
I used edit reply and got this error.
can you show your fish.js
sure lol
its over the text limit so i will split it up to two messages
no, upload it to pastebin
sure
Pastebin
const { MessageEmbed } = require('discord.js');const fs = require('...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
well you probably replied or deferred somewhere else then
is there a way where i can make it like as soon as the command is sent, it sends a loading message like dyno, then sends the command embed etc?
I'm not sure about what dynos' loading message is
do you have an image?
yep
let me get it
wait
(based on the stack trace from the original error, I'd guess it's in
interactionCreate.js
)mb i was getting confused with the dyno is thinking thing
yeah that's just a defer
i can show you my interactioncreate.js if you want
if you want to defer "as soon as possible", you'd do it on your command handler ig
right before you actually call the command
but that creates even more problems, so I'd just recommend that you only defer when you need it
sure
thank you so much for your help
i really appreciate it
alot