Skip to main content
Version: 1.4.1

LavalinkResponse

ruvyrias


ruvyrias / LavalinkResponse

Interface: LavalinkResponse

Defined in: src/Response.ts:9

Represents the response from Lavalink when loading tracks.

Properties

loadType

loadType: LoadType

Defined in: src/Response.ts:11

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


playlistInfo?

optional playlistInfo: object

Defined in: src/Response.ts:13

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: src/Response.ts:20

An array of tracks loaded in the response.