ckohen
DIAdiscord.js - Imagine an app
•Created by Void10k on 6/28/2023 in #djs-questions
Rate limits for /interactions & /webhooks
Nope, just another 50 as far as i'm aware. Interaction responses aren't bounded by the global RL in away way btw. As soon as /callback is requested it goes through. So it'd only mater for followups / edits.
6 replies
DIAdiscord.js - Imagine an app
•Created by Void10k on 6/28/2023 in #djs-questions
Rate limits for /interactions & /webhooks
No, technically it's another global rl (and in theory so are normal webhooks), but discord devs can't come to a decisive answer on what we should do, so we play it safe
6 replies
DIAdiscord.js - Imagine an app
•Created by Yinoguns on 12/20/2022 in #djs-questions
Infinite Rate Limit & Global(...) ?
yes
50 replies
DIAdiscord.js - Imagine an app
•Created by Yinoguns on 12/20/2022 in #djs-questions
Infinite Rate Limit & Global(...) ?
Timeout exists, it’s listed as timeToReset. But we don’t know anything else about it
50 replies
DIAdiscord.js - Imagine an app
•Created by Yinoguns on 12/20/2022 in #djs-questions
Infinite Rate Limit & Global(...) ?
It’s a shared ratelimit, there is no indication of why it happens. Discord does not punish these requests.
50 replies
DIAdiscord.js - Imagine an app
•Created by Yinoguns on 12/20/2022 in #djs-questions
Infinite Rate Limit & Global(...) ?
Webhooks have some interesting shared ratelimits
50 replies
DIAdiscord.js - Imagine an app
•Created by Yinoguns on 12/20/2022 in #djs-questions
Infinite Rate Limit & Global(...) ?
That’s not an issue at all. That’s behaving correctly. As i said before having infinity limit means there is no “local” ratelimit on the endpoint. Which will be true for most GET requests.
50 replies
DIAdiscord.js - Imagine an app
•Created by Rodry on 1/6/2023 in #djs-questions
How can I get the precise time at which a request is sent?
13 replies
DIAdiscord.js - Imagine an app
•Created by Rodry on 1/6/2023 in #djs-questions
How can I get the precise time at which a request is sent?
you can also use diagnostics channel to see when undici sends requests
13 replies
DIAdiscord.js - Imagine an app
•Created by Yinoguns on 12/20/2022 in #djs-questions
Infinite Rate Limit & Global(...) ?
would be good to know
50 replies
DIAdiscord.js - Imagine an app
•Created by Yinoguns on 12/20/2022 in #djs-questions
Infinite Rate Limit & Global(...) ?
but actually, feel free to let us now if that is thrown any other time
50 replies
DIAdiscord.js - Imagine an app
•Created by Yinoguns on 12/20/2022 in #djs-questions
Infinite Rate Limit & Global(...) ?
it works, just thought you'd specifically call out callback
50 replies
DIAdiscord.js - Imagine an app
•Created by Yinoguns on 12/20/2022 in #djs-questions
Infinite Rate Limit & Global(...) ?
.limit isn't how long the ratelimit is, its the maximum number of requests before you hit the ratelimit
50 replies