Sapphire - Imagine a framework
Sapphire - Imagine a framework

sapphire-support

Root Question Message

THUNDERWANG
THUNDERWANG1/8/2023
Cooldown Message

Is there a way to display a custom cooldown message after a cooldown limit is reached?
Favna
Favna1/8/2023
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 #737142503043498015 there is loads.

Solution Message

Favna
Favna1/8/2023
TL;DR: see https://www.sapphirejs.dev/docs/Guide/preconditions/reporting-precondition-failure, get the remaining amount from error.context. Then send custom messages.
THUNDERWANG
THUNDERWANG1/8/2023
Got it thanks! Didn't realize I should search #737142503043498015 too!
Favna
Favna1/8/2023
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.
Favna
Favna1/8/2023
I guess that's not specified anywhere hmm... Maybe I should add that to welcome or post guidelines.
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy