Command Builder
Inheritors
Properties
Link copied to clipboard
The permissions required for the bot to run this command.
Link copied to clipboard
Purely for debugging purposes, will be shown in exceptions.
Link copied to clipboard
The parent of this command, null
for top-level commands.
Link copied to clipboard
The complete path that leads to this command.
Link copied to clipboard
The permissions required for the caller to use this command.
Functions
Link copied to clipboard
fun CommandBuilder.cooldown(duration: Duration, scope: RateLimitScope = RateLimitScope.USER, deleteOnRefill: Boolean = true, block: RateLimitBuilder.() -> Unit = {})
Sets an anonymous rate limit-based cooldown on this command. This cooldown cannot be referenced anywhere else as it is not registered.
Link copied to clipboard
Sets an anonymous rate limiter on this command. This rate limiter cannot be referenced anywhere else as it is not registered.
Link copied to clipboard
Sets the rate limiter of this command to one declared by a RateLimitProvider.