Sign In

$cooldown[]

Adds a command cooldown

v1.0.3+ Requires Brackets Experimental
Warning

This is an experimental function. It may not work as expected and is not guaranteed to be stable. Expect bugs, changes, or removal.

Usage

$cooldown[;;]

Arguments

NameTypeRequiredDescription
id
StringYesThe id to assign the cooldown to, can be anything
duration
TimeYesThe duration of the cooldown
code
StringNoThe code to execute if the cooldown is active

Examples

$c[This is a guild based user cooldown]
$cooldown[$commandName_$guildID_$authorID;1h;You're on cooldown.]
Hello!
$c[This is a user based cooldown]
$cooldown[$commandName_$authorID;1h;You're on cooldown.]
Hello!

Was this page helpful?