correct way of formatting the bot's uptime

tried with this but it doesn't return the correct uptime
formatter.format(this.container.client.uptime * 1000);
formatter.format(this.container.client.uptime * 1000);
Solution:
https://github.com/favware/dragonite/blob/main/src/commands/System/info.ts#L167-179 My bad I misread. Anyway you don't need time utilities for uptime. Just use discord native timestamps. Much much better and much much easier....
GitHub
dragonite/src/commands/System/info.ts at main · favware/dragonite
A Pokémon information Discord bot built around Discord Interactions - favware/dragonite
Jump to solution
4 Replies
Favna
Favna•14mo ago
How are we supposed to tell when we have no idea what your formatter is... At any rate, example is here: https://github.com/sapphiredev/examples/blob/main/examples/with-typescript-complete/src/commands/General/ping.ts
GitHub
examples/examples/with-typescript-complete/src/commands/General/pin...
Various examples of setting up your bot with the Sapphire Framework - sapphiredev/examples
-Carlos🎃
-Carlos🎃•14mo ago
there's no uptime thing there, i'm using sapphire formatter @sapphire/time-utilities
Solution
Favna
Favna•14mo ago
https://github.com/favware/dragonite/blob/main/src/commands/System/info.ts#L167-179 My bad I misread. Anyway you don't need time utilities for uptime. Just use discord native timestamps. Much much better and much much easier.
GitHub
dragonite/src/commands/System/info.ts at main · favware/dragonite
A Pokémon information Discord bot built around Discord Interactions - favware/dragonite
-Carlos🎃
-Carlos🎃•14mo ago
ty
Want results from more Discord servers?
Add your server