description |
---|
Set a cooldown for a command |
This function sets a cooldown to the current command
This function has 2 fields
- Time (Required)
- Error (Required)
Raw Usage: $cooldown[time;error]
- Time - The time of the cooldown
- Error - The message when the cooldown is in affect
- %time% - You can add this into the error message to show the remaining time left
bot.command({
name: "hello",
code: `
$description[Hello!]
$cooldown[1m;Hey, you need to wait %time%!]
`
})