Skip to content

$songInfo

$songInfo will return given song’s information.

Usage

$songInfo[type?;position?]

Parameters

FieldTypeDescriptionRequired
type?stringinformation to retrievefalse
position?numbersong position in the queuefalse

Types

FieldReturnsDescription
titlestringSong title
thumbnailstringSong thumbnail (if any)
urlstringSong url
durationstringSong duration
artiststringSong author
platformstringTrack player platform
identifierstringTrack identifier
isSeekablebooleanReturn true if the track is seekable
isStreambooleanReturn true if the track is streaming
isrcstringTrack isrc
durationMsnumberSong duration in milliseconds
queueLengthnumberPlayer queue length
albumNamestringSong album name (if any)
albumUrlstringSong album url (if any)
artist.artworkUrlstringArtist artwork url (if any)
artist.urlstringArtist url (if any)
requester.usernamestringRequester username
requester.idsnowflakeRequester user id
requester.avatarstringRequester user avatar
requester.bannerstringRequester user banner
requester.mentionstringRequester mention

Example(s)

This will return given song’s information

1
client.command({
2
name: "songinfo",
3
code: `
4
$songInfo[title]
5
`
6
});