rate Limit
fun rateLimit(group: String, rateLimiter: RateLimiter, block: ReceiverConsumer<RateLimitBuilder> = ReceiverConsumer.noop()): RateLimitInfo(source)
Creates a rate limiter with the specified group.
The created rate limiter can be used in CommandBuilder.rateLimitReference and @RateLimitReference.
Note: The rate limiter won't apply if you are a bot owner.
Parameters
group
The name of the rate limiter
rate Limiter
The RateLimiter in charge of retrieving buckets and handling rate limits
block
Further configures the RateLimitBuilder
Throws
If a rate limiter with the same group exists