Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TrackResponse

A track response containing all information about the request.

Hierarchy

  • TrackResponse

Index

Properties

exception?: { message: string; severity: ExceptionSeverity }

Exception errors.

note

Only present when loadType is LoadType.LoadFailed.

Type declaration

  • message: string

    Details why the track failed to load, and is okay to display to end-users.

    example
    "The uploader has not made this video available in your country."
    
  • severity: ExceptionSeverity

    Severity represents how common the error is. A severity level of COMMON indicates that the error is non-fatal and that the issue is not from Lavalink itself.

loadType: LoadType

The type of response.

example
"TRACK_LOADED"
playlistInfo: {} | PlaylistInfo

The playlist information.

note

Only filled when loadType is LoadType.PlaylistLoaded.

example
{}
example
{
"name": "Example YouTube Playlist",
"selectedTrack": 3
}
tracks: Track[]

The loaded tracks.

example
[{
"track": "QAAAjQIAJVJpY2sgQXN0bGV5IC0gTmV2ZXIgR29ubmEgR2l2ZSBZb3UgVXAADlJpY2tBc3RsZXlWRVZPAAAAAAADPCAAC2RRdzR3OVdnWGNRAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9ZFF3NHc5V2dYY1EAB3lvdXR1YmUAAAAAAAAAAA==",
"info": {
"identifier": "dQw4w9WgXcQ",
"isSeekable": true,
"author": "RickAstleyVEVO",
"length": 212000,
"isStream": false,
"position": 0,
"title": "Rick Astley - Never Gonna Give You Up",
"uri": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
}]

Generated using TypeDoc