DiscordJS Commands Cooldown
discordjs-ccooldowns
or DiscordJS Commands Cooldown
is an easy way to add cooldown to your slashcommands for your bot using discordjs
Using a little count of code lines you can add an advanced feature to your bot and make it looks more professional
Note: Create cooldowns using MySQL
Although it is true that you will need a MySQL database and it will take more work to use this library creating the cooldowns using the MySQL method is the safest since it will avoid that when the bot is restarted the cooldowns are eliminated, in the same way It will avoid many errors that the Map method could cause
Note: Create cooldowns using JavaScipt Map
It is not recommended to use this method because if the bot restarts, all cooldowns will be removed.