$getCooldownTime
Gets how much time is left on a cooldown, in milliseconds.
Usage
$getCooldownTime[commandName;id]
This function has two params.
Param
Description
Type
Required
commandName
The command to get the cooldown from.
String
Yes
Example
bot.commands.add({
type: "basicCommand",
name: "example",
code: `$getCooldownTime[someCommandName;$authorID]` //Returns how much time is left on 'someCommandName' cooldown in milliseconds
})
Last updated
Was this helpful?