$songInfo
$songInfo
will return given song’s information.
Usage
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.artworkUrl | 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 |
Example(s)
This will return given song’s information
This will return given song’s information