$getCooldown

Returns how long is left on the cooldown, in seconds.

Note

This function can be used in the “Error message” parameter of cooldown functions.

Syntax

$getCooldown[Cooldown type]

Parameters

Example

$nomention
$cooldown[1h;You're on cooldown! (<t:$sum[$getTimestamp;$getCooldown[normal]]:R>)]
Hello world!
!example Hello world! !example You're on cooldown! (
In 1 hour
)

What is this?

How $cooldown[], $sum[] and $getTimestamp works?