Inconsistent Timing in `ModalInteraction.deferReply()`
The function
ModalInteraction.deferReply()
is exhibiting inconsistent behavior. Instead of taking a constant interval of time to execute, it is taking a random amount of time.
I tried a version without the inCachedGuild()
but same problem
Times:
The problem is under node 18 and 20 and under versions 14.11 and 14.15.2
The problem is present on my dev machines (windows 11 / Ubuntu 24.04) and on my server (Debian 12)5 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!Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
yes, but from there to goes from 0.53s to 6s it's still a little strange knowing that the interaction expires in the meantime
knowing that this only happens for modals
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
this is not logical, if this was an internet problem it would also happen for other ineractions except this only happens for modals
if you look at the logs above the time for the buttons are in a regular and stable interval there is no big variation like for the modals