Rate Limit Manager
Allows programmatic declaration of autocomplete handlers using AutocompleteHandlerProvider.
See also
Functions
Link copied to clipboard
fun cooldown(group: String, duration: Duration, scope: RateLimitScope = RateLimitScope.USER, deleteOnRefill: Boolean = true, block: ReceiverConsumer<RateLimitBuilder> = ReceiverConsumer.noop()): RateLimitInfo
Creates a rate limit-based cooldown.
Link copied to clipboard
fun RateLimitManager.cooldown(group: String, duration: Duration, scope: RateLimitScope = RateLimitScope.USER, deleteOnRefill: Boolean = true, block: ReceiverConsumer<RateLimitBuilder> = ReceiverConsumer.noop()): RateLimitInfo
Creates a rate limit-based cooldown.
Link copied to clipboard
fun rateLimit(group: String, rateLimiter: RateLimiter, block: ReceiverConsumer<RateLimitBuilder> = ReceiverConsumer.noop()): RateLimitInfo
Creates a rate limiter with the specified group.