Package-level declarations
Types
Link copied to clipboard
Sets the required bot permissions to use this text / application command.
Link copied to clipboard
annotation class Cooldown(val cooldown: Long = 0, val unit: ChronoUnit = ChronoUnit.MILLIS, val scope: RateLimitScope = RateLimitScope.USER, val deleteOnRefill: Boolean = true)
Add a simple rate limit-based cooldown of this text / application command and components.
Link copied to clipboard
Marks a parameter as being a generated option.
Link copied to clipboard
Marks an option (@SlashOption or @TextOption) as being optional.
Link copied to clipboard
annotation class RateLimit(val scope: RateLimitScope, val deleteOnRefill: Boolean = true, val bandwidths: Bandwidth)
Defines a rate limit for a command / component handler.
Link copied to clipboard
Uses an existing rate limiter for this command / component handler.
Link copied to clipboard
annotation class Refill(val type: RefillType, val tokens: Long, val period: Long, val periodUnit: ChronoUnit)
Defines how the tokens are refilled on each bandwidth.
Link copied to clipboard
Refill type of bandwidths.
Link copied to clipboard
Sets the required user permissions to use this text / application command.
Link copied to clipboard
Generates N command options from the specified @SlashOption or @TextOption.