toggle menu
BotCommands
JVM
switch theme
search in API
BotCommands
/
io.github.freya022.botcommands.api.commands.ratelimit.bucket
/
Buckets
/
ofCooldown
of
Cooldown
fun
ofCooldown
(
duration
:
Duration
)
:
BucketConfiguration
(
source
)
@
JvmStatic
fun
ofCooldown
(
duration
:
Duration
)
:
BucketConfiguration
(
source
)
Creates a
BucketConfiguration
with a single token, which gets regenerated after the given duration.