gaato/discord/ratelimit does not have a README file
pub(open) trait RateLimiter {
async fn acquire(Self, bucket_key : String, global_exempt~ : Bool) -> Unit
async fn release(Self, bucket_key : String, status~ : Int, headers~ : Map[String, String]) -> Unit
}pub struct InMemoryRateLimiter {
global_limit : Int
global_window_start : Int64
global_count : Int
global_blocked_until : Int64
// private fields
}impl RateLimiter for InMemoryRateLimiterasync fn release(self : InMemoryRateLimiter, bucket_key : String, status~ : Int, headers~ : Map[String, String]) -> UnitInstall
Download zipAn experimental Discord library for MoonBit: typed APIs, a native gateway with voice (DAVE E2EE), and JS/serverless HTTP interactions.
Dependencies