How to have cooldown on commands based on conditions

Basically, I want a cooldown on the command if the user lost, but not if the user won(which would be a bool).
6 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
samp
sampOP2y ago
discord.js v14.7.1 node version v18.12.1
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
samp
sampOP2y ago
Well what if the bot doesn't restart very often? also, if it helps, the cooldown is 5 minutes right now i'm taking a stupid route where I'm timing the user out for 5 minutes (no one uses the command anyways so it's fine for now)
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
samp
sampOP2y ago
nice.
Want results from more Discord servers?
Add your server