Interaction reply time limit
Hi all, I'm currently writing a discord bot command that needs to ping the API which ping the DB as well as a Redis cache and send the reply. My issue is that I seem to have run into the 3s interaction reply limit. I've tried responding with something like
And then editing the reply after all the data fetching is done, but this also seems to not work sometimes and the reply gets stuck showing only the
Loading...
message.
My question is, is there a way that I can raise the time limit specifically for this command or the bot in general? I haven't really found a way to do that.
Thanks in advance! 😄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!
- ✅
Marked as resolved by OPUnknown User•7mo ago
Message Not Public
Sign In & Join Server To View
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 responsesI'm using raw, because the API I'm working with doesn't really have
discord.js
installed, it's only on the bot side. Not sure why it's done this way but here we are 😄 I'll check about defering the command. Thanks!