mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-18 00:33:59 +00:00
fix(bots/discord/utils/duration): make second the default unit
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import parse from 'parse-duration'
|
import parse from 'parse-duration'
|
||||||
|
|
||||||
|
parse[''] = parse['s']
|
||||||
parse['mo'] = parse['M'] = parse['month']!
|
parse['mo'] = parse['M'] = parse['month']!
|
||||||
|
|
||||||
const defaultUnitValue = parse['']!
|
const defaultUnitValue = parse['']!
|
||||||
|
|||||||
Reference in New Issue
Block a user