$getCooldownTime
Gets how much time is left on a cooldown, in milliseconds.
Usage
This function has two params.
Param | Description | Type | Required |
---|---|---|---|
commandName | The command to get the cooldown from. | String | Yes |
id | The same thing you provided for 'id' in $cooldown. | Snowflake | Yes |
`$getCooldownTime` returns `0` if there is no cooldown active for the provided `commandName` on `id`.
Example
Last updated