command cooldown
I am trying to make a command cooldown, please note I am using slash commands here and the code below is in the interactionCreate.js event file. The event works perfectly fine, it is just the cooldown.
Here is the cooldown code.
Console output
3 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Why dont you just make a collection in the work with just for every id a bool thats set to true and reseted to false when the cooldown is over?
I dont get why youre doing so much complecated things when you could just make it few lines of code
i like the method above