Skip to content

$currentTrackDuration

$currentTrackDuration will return the current track duration.

Usage

$currentTrackDuration[humanize?]

Parameters

FieldTypeDescriptionRequired
humanize?booleanconvert MS to human-readable time.false

Example(s)

This will return the current track duration

1
client.command({
2
name: "currentduration",
3
code: `
4
current track duration is:
5
$currentTrackDuration[true]
6
`
7
});