Search typedefs
searchQuery
Parameter | Type | Description |
---|---|---|
source | SearchPlatform | The source to search from. |
query | string | The query to search for. |
searchResult
Parameter | Type | Description |
---|---|---|
loadType | LoadType | The load type of the result. |
tracks | Track[] | The array of tracks from the result |
playlist | TrackSourceTypes | The playlist info if the load type is 'playlist'. |
playlistData
Parameter | Type | Description |
---|---|---|
name | string | The playlist name. |
requester | User | ClientUser | Requester of playlist. |
playlistInfo | PlaylistInfoData{} | More playlist information. |
duration | number | The length of the playlist. |
tracks | Track[] | The songs of the playlist. |
playlistInfoData
Parameter | Type | Description |
---|---|---|
url | string | Url to playlist. |
type | string | Type is always playlist in that case. |
artworkUrl | string | ArtworkUrl of playlist |
totalTracks | number | Number of total tracks in playlist |
author | string | Author of playlist |