TrackUtils

Overview

Properties

static trackPartial

TypeValue
string[] or nullnull

Methods

static build()

Builds a Track from the raw data from Lavalink and a optional requester.

Returns: Track

ParameterType
dataTrackData
Optional requesterunknown

static buildUnresolved()

Builds a unresolved track before being played.

Returns: UnresolvedTrack

ParameterType
querystring
Optional requesterunknown

static getClosestTrack()

Finds the track that best matches the unresolved track.

Returns: Promise<Track>

ParameterType
unresolvedTrackUnresolvedTrack

static isTrack()

Checks if the provided argument is a valid Track.

Returns: boolean

ParameterType
trackunknown

static isUnresolvedTrack()

Checks if the provided argument is a valid UnresolvedTrack.

Returns: boolean

ParameterType
trackunknown

static setTrackPartial()

Returns: void

ParameterType
partialstring[]

static validate()

Checks if the provided argument is a valid Track or UnresolvedTrack, if provided an array then every element will be checked.

Returns: boolean

ParameterType
track or tracksstring or string[]
Table of Contents