slow deferUpdate

So I have been doing quite some debugging to increase my command speed and I noticed that await interaction.deferUpdate() takes 300-500ms for me even though my ping to the ws is around 20. Is that an expected range I'm meant to look at or is that too high? Is there any ways to reduce this?
10 Replies
d.js toolkit
d.js toolkit13mo ago
- 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!
Mac
MacOP13mo ago
even 500 is a stretch. Sometimes it takes 1.3s which is just too much imo Here's the timings from the previous few times ive had it.
interaction_defer_1173010696120848475: 239.344ms
interaction_defer_1173010796788330506: 470.271ms
interaction_defer_1173010968507334697: 207.619ms
interaction_defer_1173010990862966814: 1.443s
interaction_defer_1173011532767039528: 716.828ms
interaction_defer_1173011586781302885: 331.999ms
interaction_defer_1173011863303356566: 900.056ms
interaction_defer_1173011908593459230: 500.862ms
interaction_defer_1173012033386577970: 318.772ms
interaction_defer_1173012097060323348: 426.749ms
interaction_defer_1173010696120848475: 239.344ms
interaction_defer_1173010796788330506: 470.271ms
interaction_defer_1173010968507334697: 207.619ms
interaction_defer_1173010990862966814: 1.443s
interaction_defer_1173011532767039528: 716.828ms
interaction_defer_1173011586781302885: 331.999ms
interaction_defer_1173011863303356566: 900.056ms
interaction_defer_1173011908593459230: 500.862ms
interaction_defer_1173012033386577970: 318.772ms
interaction_defer_1173012097060323348: 426.749ms
treble/luna
treble/luna13mo ago
what host do you use because this seems more like a hosting issue
Mac
MacOP13mo ago
oh? you reckon its to do with network or something?
treble/luna
treble/luna13mo ago
yes
Mac
MacOP13mo ago
Possible, I guess latency being 20 is good but perhaps upload speeds are slow
treble/luna
treble/luna13mo ago
i am testing myself and am reaching anything inbetween 230-500ms
Mac
MacOP13mo ago
and your ping to the api?
treble/luna
treble/luna13mo ago
124ms
Mac
MacOP13mo ago
okay interesting.
Want results from more Discord servers?
Add your server