$guildCooldown
Adds a cooldown to the command in the current server. The same cooldown will not affect other servers.

FUNCTION USAGE

    $guildCooldown[time;error]

Properties:

time - Time it takes for the bot to respond to the user 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.
s - seconds m - minutes h - hours d - days Max is 25 days OR if your bot restarts!
    This works for the command in the current server only!
1
bot.Command({
2
name: "hi",
3
code: `
4
hi, how are you?
5
$guildCooldown[60s;This command is on cooldown in this server for {time}!]
6
`
7
})
Copied!
Last modified 3mo ago
Copy link
Contents
Properties: