cooldown
fun CommandBuilder.cooldown(duration: Duration, scope: RateLimitScope = RateLimitScope.USER, deleteOnRefill: Boolean = true, block: RateLimitBuilder.() -> Unit = {})(source)
Sets an anonymous rate limit-based cooldown on this command. This cooldown cannot be referenced anywhere else as it is not registered.
Cooldown cancellation
The cooldown can be cancelled inside the command with CancellableRateLimit.cancelRateLimit on your event.
Parameters
duration
The duration before the cooldown expires
scope
The scope of the cooldown
delete On Refill
Whether the cooldown message should be deleted after the cooldown expires
block
Further configures the RateLimitBuilder
See also
@Cooldown