$categoryCooldown
A command cooldown that affects all channels in an entire guild category. `{time}` can be used to determine how much time is left on the cooldown.

FUNCTION USAGE

  • $categoryCooldown[time;error]

Properties:

time - Time it takes for the bot to respond in any channel in that category again. error - Error message if the user tries to use the command within the cooldown period. {time} - Include this in your error message to make the bot respond with how long is left in the cooldown when attempting to execute the command while under cooldown.
s - seconds m - minutes h - hours d - days Max is 25 days OR if your bot restarts!
1
bot.Command({
2
name: "hi",
3
code: `
4
hi, how are you?
5
$categoryCooldown[60s;This command is on cooldown in every channel in this category for {time}!]
6
`
7
})
Copied!
Last modified 5mo ago
Copy link
Contents
Properties: