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
| Name | Type | Required | Description |
|---|---|---|---|
id | String | Yes | The id to assign the cooldown to, can be anything |
duration | Time | Yes | The duration of the cooldown |
code | String | No | The 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!