RateLimitClient

interface RateLimitClient

Functions

acquire
Link copied to clipboard
abstract suspend fun acquire(annotation: RateLimit, event: SlashCommandInteractionEvent): Long?
createBucketKey
Link copied to clipboard
open fun createBucketKey(annotation: RateLimit, event: SlashCommandInteractionEvent): String
onRateLimitHit
Link copied to clipboard
open fun onRateLimitHit(ctx: SlashCommandContext, rateLimit: RateLimit, waitFor: Long)