Skip to content

$songInfo

$songInfo will return given song’s information.

Usage

$songInfo[type?;position?]

Parameters

Field Type Description Required
type? string information to retrieve false
position? number song position in the queue false

Types

Field Returns Description
title string Song title
thumbnail string Song thumbnail (if any)
url string Song url
duration string Song duration
artist string Song author
platform string Track player platform
identifier string Track identifier
isSeekable boolean Return true if the track is seekable
isStream boolean Return true if the track is streaming
isrc string Track isrc
durationMs number Song duration in milliseconds
queueLength number Player queue length
albumName string Song album name (if any)
albumUrl string Song album url (if any)
artist.avatar string Artist artwork url (if any)
artist.url string Artist url (if any)
requester.username string Requester username
requester.id snowflake Requester user id
requester.avatar string Requester user avatar
requester.banner string Requester user banner
requester.mention string Requester mention
playlist.name string Track playlist name
playlist.author string Track playlist author
playlist.thumbnail string Track playlist thumbnail
playlist.tracks number Total tracks in the playlist
playlist.url string Playlist URL

Example(s)

This will return given song’s information

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