#Cooldowns during command execution

1 messages · Page 1 of 1 (latest)

tacit iron
#

Hi all, wondering if there is a way to set a cooldown using with the global cooldown precondition during command execution? Creating a system for transactions, if said transaction goes through I would like the cooldown to be x amount. Otherwise if it fails, I'd like it to be the default value. Not sure if I need to implement a custom system for this or if this can be achieved with the default tools given.

#

If you find the time to reply, I'd greatly appreciate you pinging me when responding! :)

woven needle
tacit iron
woven needle
#

A Map, or Collection if you need to additional methods DJS adds. The exact same way that DJS caches things.

tacit iron
tacit iron
#

yeah but do i check every x minute or

#

whats a good practice for this

woven needle
#

there isnt really any standard. You decide for yourself.