$cooldown
Sets a cooldown.
Usage
$cooldown[id;time;errorMessage]
This function has three params.
Param
Description
Type
Required
id
The user, channel, or guild to assign this cooldown to.
Snowflake
Yes
duration
How long the cooldown should last.
Time
Yes
errorMessage
The message to return when the cooldown is ongoing.
String
No
Examples
Creating a Global User Cooldown:
$cooldown[$authorID;1h;You have to wait $get[time_left] to use this command again!]
Creating a Local User Cooldown:
$cooldown[$guildID_$authorID;1h;You have to wait $get[time_left] to use this command again!]
Creating a Channel Cooldown:
$cooldown[$channelID;1h;You have to wait $get[time_left] to use that command in this channel!]
Creating a Guild Cooldown:
$cooldown[$guildID;1h;You have to wait $get[time_left] to use that command in this channel!]
Last updated
Was this helpful?