$getCooldownTime

Returns remaining time of a cooldown in miliseconds.

Usage

$getCooldownTime[time;type;id]
  1. time - (Optional) default value: (last cooldown set). The time your cooldown was set to.
  2. type - (Optional) default value: user. Can be user, channel or server. The type of cooldown to return remaining time of.
  3. id - (Optional) default value: $authorID if type is user. The ID of a user or a channel to check cooldown from.

Example

Using $getCooldownTime

How to use $getCooldownTime

User06/01/2026
!!exec $channelCooldown[5m]
$getCooldownTime[5m;channel;$channelID]
Custom Command Bot 06/01/2026
299937

Note

The time argument in must exactly match the time in the original cooldown function used. Mismatched durations will result in incorrect cooldown checks.

Function difficulty: Medium
Tags: Tag1 Tag2