$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!
bot.Command({
name: "hi",
code: `
hi, how are you?
$guildCooldown[60s;This command is on cooldown in this server for {time}!]
`
})
Copy link