$guildCooldown
$guildCooldown will set a guild-based cooldown.
Usage
$guildCooldown[time;errorMessage]- You are able to retrieve the remaining cooldown in the
$guildCooldownfunction by using%time%or any of the following below.%time%%year%%month%%week%%day%%hour%%min%%sec%%ms%%fullTime%
Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| time | number | The duration of the cooldown. | true |
| errorMessage | string | Error message when there’s remaining time for the cooldown. | true |
Example(s)
This will set a cooldown for a command which applies to the guild only and returns the remaining cooldown:
1client.command({2 name: "guildCooldown",3 code: `4 hello5 $guildCooldown[2m;Please wait %time% to execute this command again.]6 `7});