mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-05-28 11:42:23 +00:00
Add link to Discord rate limit docs in comments
This commit is contained in:
@@ -57,6 +57,7 @@ public class DiscordClient
|
|||||||
// make any more requests, but implementing a smarter solution would
|
// make any more requests, but implementing a smarter solution would
|
||||||
// require properly keeping track of Discord's global/per-route/per-resource
|
// require properly keeping track of Discord's global/per-route/per-resource
|
||||||
// rate limits and that's just way too much effort.
|
// rate limits and that's just way too much effort.
|
||||||
|
// https://discord.com/developers/docs/topics/rate-limits
|
||||||
var remainingRequestCount = response
|
var remainingRequestCount = response
|
||||||
.Headers
|
.Headers
|
||||||
.TryGetValue("X-RateLimit-Remaining")?
|
.TryGetValue("X-RateLimit-Remaining")?
|
||||||
|
|||||||
Reference in New Issue
Block a user