DiscordAPError[10062]: Unknown Interaction
Sometimes it loads sometimes I get an instant error, while the first thing to do is to defer it. The id is good because when I console log the interaction it gives me the details
39 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!I've seen the tag that says:
- 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)
But it shouldn't take 3 seconds to reply / console log
The problem is sometimes if I add the .reply it will reply but after that I get the error
Or sometimes if I use the .reply instead of deferReply it won't even reply and get the error instantly
can you send me the error?
Yes for sure!
Pastebin
throw new DiscordAPIError(data, "code" in data ? data.code : data....
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.
So I get the error no matter what I do
Reply, deferReply just console log as well
hmmm
is this in index.js or a different file
A different file
When I console log the interaction, it gives me it
send me all the code
Of the index ?
of this file
that you are getting the error from
Pastebin
import {ButtonInteraction, Events, Interaction, InteractionButtonCo...
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.
hmmm
And like I said it's weird sometimes it sends me a reply and sometimes not
But it always gives me that error
oh yea thats weird
@Hiro can you send me a vid if you can of it working then it not working
For example I got this
but after that I got the error
Sure
But when I mean working it's just replying and still getting the error right after
It's like 50/50 sometimes I get the reply sometimes not but 100% get the error
Without code change it's 50/50
i actually have no idea why thats like that
That's why it's so weird
I would understand if it's 0% or 100%
But sometimes I get a reply sometimes not but still get the error anyway
yea i dont know why its random
.....
?
I mean I've been on this for like a day
shit
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 responsesYes but non of those 3 apply
The reply is instant and still get error, no 2 bots on the same moment
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
But why do I get the error
If I get a reply
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
I get a reply
I just did it now
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
I only have one terminal open and restarted full pc to make sure
possibly relevant: https://github.com/discord/discord-api-docs/issues/5558
Yes I think it is
Seems like there is no fix nice
great...