This function will create a cooldown for one of the 5 times of existing cooldowns.
This function has 2 required fields.
- Type (Required)
- Time (Required)
- errorMessage (Optional)
Raw usage: $complexCooldown[type;time;errorMessage]
- Type (user / server / channel / globalUser / all) - Who will affect this cooldown.
- Time - The cooldown amount of time.
- errorMessage - The error the users should get when they try to run the command without waiting for the cooldown to be up.
bot.command({
name: "uwu",
code: `uwu
$complexCooldown[server;15s;Wait %time% more before uwuing again]`
})