$getCooldownTime
$getCooldownTime
will return the cooldown time of a given command.
Usage
$getCooldownTime[time;type;command;id]
Parameters
Field | Type | Description | Required |
---|---|---|---|
time | string | The time of the cooldown. | true |
type | string | Cooldown type 1. globalUser 2. user 3. server 4. channel 5. static | true |
command | string | Command name. | true |
id | number | User/guild/channel/message ID. | true |
Example(s)
This will return the remaining cooldown of the “getCooldownTime” command:
1client.command({2 name: "getCooldownTime",3 code: `4 $cooldown[2m;]5 $getCooldownTime[2m;user;getCooldownTime;$authorID]6 `7});