Crates.io | twilight-http-ratelimiting |
lib.rs | twilight-http-ratelimiting |
version | 0.16.0-rc.1 |
source | src |
created_at | 2021-12-03 19:52:47.980109 |
updated_at | 2024-02-21 17:34:13.56457 |
description | Discord REST API ratelimiter implementations for the Twilight ecosystem. |
homepage | https://twilight.rs/ |
repository | https://github.com/twilight-rs/twilight.git |
max_upload_size | |
id | 491911 |
size | 76,765 |
Ratelimiting functionality for HTTP requests.
Discord ratelimits requests to the HTTP API both globally and per-route. For more information on the specifics, please take a look at Discord's documentation.
This crate provides a common [Ratelimiter
] trait that all ratelimiter
implementations need to implement.
It also ships a default implementation, [InMemoryRatelimiter
], that manages
the bucket states in memory.