chore: change cooldown display to use relative timestamps for better UX with international users.

This commit is contained in:
syntaxbullet
2025-12-21 11:26:53 +01:00
parent 5833224ba9
commit ca1339728a

View File

@@ -80,7 +80,7 @@ export const economyService = {
});
if (cooldown && cooldown.expiresAt > now) {
throw new UserError(`Daily already claimed. Ready at ${cooldown.expiresAt}`);
throw new UserError(`Daily already claimed. Ready at <t:${Math.floor(cooldown.expiresAt.getTime() / 1000)}:R>`);
}
// Get user for streak logic