kimbletee
DIAdiscord.js - Imagine an app
•Created by mze9412 on 2/4/2024 in #djs-questions
rate limit information
Excellent! Thank you!
21 replies
DIAdiscord.js - Imagine an app
•Created by mze9412 on 2/4/2024 in #djs-questions
rate limit information
I guess what I’m asking with the promise.all question is that will the client in theory also support making many parallel requests, but looking at my current case, which is querying messages, I don’t think I’ll actually need to do that for the time being.
21 replies
DIAdiscord.js - Imagine an app
•Created by mze9412 on 2/4/2024 in #djs-questions
rate limit information
Thanks for patiently clarifying and helping me with this! I appreciate it.
21 replies
DIAdiscord.js - Imagine an app
•Created by mze9412 on 2/4/2024 in #djs-questions
rate limit information
Do you know if in theory it could also work with Promise.all() ?
21 replies
DIAdiscord.js - Imagine an app
•Created by mze9412 on 2/4/2024 in #djs-questions
rate limit information
I guess in the big picture it's enough for me to know that from a developer's point of view I can safely just make requests with the client and not worry about hitting the rate limits.
21 replies
DIAdiscord.js - Imagine an app
•Created by Apokalypt on 5/1/2024 in #djs-questions
Is there a way to get rate-limit data about an action (like update thread name) ?
Sorry about that! My first two messages here. 😅
12 replies
DIAdiscord.js - Imagine an app
•Created by mze9412 on 2/4/2024 in #djs-questions
rate limit information
But haven’t we then hit the limit already?
21 replies
DIAdiscord.js - Imagine an app
•Created by mze9412 on 2/4/2024 in #djs-questions
rate limit information
Isn't that too late though? Shouldn't we be reading the headers of each response https://discord.com/developers/docs/topics/rate-limits and wait before making a new request so that we never hit the limit? Is there a way to read the response headers with Discord JS REST client?
21 replies
DIAdiscord.js - Imagine an app
•Created by Apokalypt on 5/1/2024 in #djs-questions
Is there a way to get rate-limit data about an action (like update thread name) ?
"discord.js handles rate limiting for you internally" I'm wondering how it actually does that since how I understand the docs (https://discord.com/developers/docs/topics/rate-limits) is that we should read the response headers and wait before making a new request. Does anyone here know if the REST client waits before returning a result or how does Discord JS prevent us from hitting the limit?
12 replies