UnresolvedTrack

Class representing an unresolved track.

Signature

export declare class UnresolvedTrack implements UnresolvedLavalinkTrack

JSDoc

@classUnresolvedTrack@implementsUnresolvedLavalinkTrack

Properties

readonly encoded?: string;

The base64 encoded track.

@type{string | undefined}
readonly pluginInfo?: Partial<PluginInfo>;

The plugin info of the track.

@type{Partial<PluginInfo>}

Methods

toJSON(): TrackJSON;

Converts the track to a JSON object for storage.

Returns

The JSON representation of the track for storage.

resolve(player: PlayerStructure): Promise<TrackStructure>;

Resolves the track to a playable track.

Parameters

player
The player to resolve the track for.

Returns

The resolved track.

@throws{ResolveError} If the track cannot be resolved.