Skip to main content
Version: 2.0.0

LavalinkResponse

ruvyrias


ruvyrias / LavalinkResponse

Interface: LavalinkResponse

Defined in: types/Response.ts:10

Represents the response from Lavalink when loading tracks.

Properties

loadType

loadType: LoadType

Defined in: types/Response.ts:12

The type of load operation performed: 'track', 'playlist', 'search', 'empty', or 'error'.


playlistInfo?

optional playlistInfo: object

Defined in: types/Response.ts:14

Information about the loaded playlist if applicable.

name?

optional name: string

The name of the playlist.

selectedTrack?

optional selectedTrack: number

The index of the selected track within the playlist.


tracks

tracks: Track[]

Defined in: types/Response.ts:21

An array of tracks loaded in the response.