$globalCooldown
Similar to $cooldown except it cools down the same command for the command author in all servers for the given time.

FUNCTION USAGE

  • $globalCooldown[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 user in every server the bot shares with the user! For a cooldown that limits users command execution to a specific server, check out $cooldown.
Example:
1
bot.Command({
2
name: "say",
3
code: `
4
$globalCooldown[60s;You cant use the say command for {time} and this goes for all the servers im in]
5
`
6
})
Copied!
Last modified 5mo ago
Copy link
Contents
Properties: