Cooldown Message
Is there a way to display a custom cooldown message after a cooldown limit is reached?
Solution:Jump to solution
TL;DR: see https://www.sapphirejs.dev/docs/Guide/preconditions/reporting-precondition-failure, get the remaining amount from error.context. Then send custom messages.
5 Replies
Also if you use the website search and enter "cooldown" it'll list various relevant interfaces. It's always a good idea to first do some searching yourself. Also this question has been asked many many times. Granted it may have been the first in new support but if then search cooldown in #old-sapphire-support there is loads.
Solution
TL;DR: see https://www.sapphirejs.dev/docs/Guide/preconditions/reporting-precondition-failure, get the remaining amount from error.context. Then send custom messages.
Got it thanks! Didn't realize I should search #old-sapphire-support too!
It was around for over a year so it has a wealth of information, which is also why we kept it and didn't delete it.
I guess that's not specified anywhere hmm... Maybe I should add that to welcome or post guidelines.