$cooldown
Sets a cooldown.
Usage
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
You can use `$get[time_left]` in 'errorMessage' to get how much time is left on the cooldown.
Examples
Creating a Global User Cooldown:
Creating a Local User Cooldown:
Creating a Channel Cooldown:
Creating a Guild Cooldown:
Last updated
Was this helpful?