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