Sapphire Dynamic Cooldown Per User

Hi! i was wondering if sapphire can use a dynamic cooldown, so i can set a dynamic cooldown per user. Does it possible? let me know. Thanks!
6 Replies
Favna
Favna2mo ago
cooldowns can be per user, but if by dynamic you mean different cooldowns for different users, you'll have to write your own precondition for that.
Intan
IntanOP2mo ago
so, i just need to remove the default cooldown system and write my own precondition right? well, i was making an economny bot that has features like work, daily, etc. the default cooldown for each command is 10s and some users use macro to run work command, so i wonder if i could made a dynamic cooldown for each user when they run work command it'll give a random cooldown between 10s-1m for example
Favna
Favna2mo ago
you dont need to remove it. Just use a different name and add your own options
Intan
IntanOP2mo ago
i see, yea it work
Favna
Favna2mo ago
Basically just look at the sapphire code how cooldown is implemented and copy all the relevant data over
Intan
IntanOP2mo ago
Thank you for the advice i'll mark this as solved
Want results from more Discord servers?
Add your server