BotCommands
Toggle table of contents
3.0.0-beta.3
jvm
Platform filter
jvm
Switch theme
Search in API
BotCommands
BotCommands-core
/
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.