Skip to content

$channelCooldown

$channelCooldown will set a channel-based cooldown.

Usage

$channelCooldown[time;errorMessage]
  • You are able to retrieve the remaining cooldown in the $channelCooldown function by using %time% or any of the following below.
    • %time% %year% %month% %week% %day% %hour% %min% %sec% %ms% %fullTime%

Parameters

FieldTypeDescriptionRequired
timestringTimer of the cooldowntrue
errorMessagestringError message when given cooldown timer is still active.false

Example(s)

This will set a cooldown for a command in the channel where the command was executed in and returns the remaining cooldown:

1
client.command({
2
name: "channelCooldown",
3
code: `
4
hello
5
$channelCooldown[2m;Please wait %time% to execute this command again.]
6
`
7
});