Sapphire - Imagine a framework
Sapphire - Imagine a framework

sapphire-support

Root Question Message

Lynx
Lynx12/6/2022
Peristing cooldowns across restarts

Hello, is it possible to persist a cooldown after restarting the bot? I have commands with big cooldowns (like a day or a month) and I don't want them to be reset.

Solution Message

24
2412/6/2022
There's no built in solution. You'd have to write one yourself backed by redis or some other solution
Lynx
Lynx12/6/2022
Okay, thanks. Guess I will need to change my memcached to Redis.
24
2412/6/2022
You can stick to memcached.
24
2412/6/2022
Just make it persist
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy