Skip to content

$getCooldownTime

$getCooldownTime will return the cooldown time of a given command.

Usage

$getCooldownTime[time;type;command;id]

Parameters

FieldTypeDescriptionRequired
timestringThe time of the cooldown.true
typestringCooldown type
1. globalUser
2. user
3. server
4. channel
5. static
true
commandstringCommand name.true
idnumberUser/guild/channel/message ID.true

Example(s)

This will return the remaining cooldown of the “getCooldownTime” command:

1
client.command({
2
name: "getCooldownTime",
3
code: `
4
$cooldown[2m;]
5
$getCooldownTime[2m;user;getCooldownTime;$authorID]
6
`
7
});