Argument examples

Are there any examples for duration arguments available? I'm struggling with duration arguments for punishments and am looking for something that would accept either a "permanent" string or a duration with the type of a string, e.g 1h, 30d, 1m Iirc there was a plugin for this but I can't remember what the name is or where to find it.
Solution:
GitHub
skyra/src/arguments/timespan.ts at main · skyra-project/skyra
A multipurpose Discord Bot designed to carry out most of your server's needs with great performance and stability. - skyra-project/skyra
Jump to solution
5 Replies
Favna
Favna10mo ago
if there was a plugin then it wasnt one that sapphire publishes
Solution
Favna
Favna10mo ago
GitHub
skyra/src/arguments/timespan.ts at main · skyra-project/skyra
A multipurpose Discord Bot designed to carry out most of your server's needs with great performance and stability. - skyra-project/skyra
dan
danOP10mo ago
Yeah I don't remember what it was. Maybe an utility of some sort that made milliseconds more readable for humans Yeah it's sapphire time utilities Oh yeah, In addition to this, are you able to shift arguments? (args.shift)
Favna
Favna10mo ago
args.next
dan
danOP10mo ago
Alr ty
Want results from more Discord servers?
Add your server