$channelCooldown
$channelCooldown
will set a channel-based cooldown.
Usage
- 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
Field | Type | Description | Required |
---|---|---|---|
time | string | Timer of the cooldown | true |
errorMessage | string | Error 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: