TrackUtils
Overview
Properties | Methods |
---|---|
trackPartial | build |
buildUnresolved | |
getClosestTrack | |
isTrack | |
isUnresolvedTrack | |
setTrackPartial | |
validate |
Properties
• static
trackPartial
Type Value string[]
or nullnull
Methods
• static
build()
Builds a Track from the raw data from Lavalink and a optional requester.
Returns: Track
Parameter Type data TrackData Optional
requesterunknown
• static
buildUnresolved()
Builds a unresolved track before being played.
Returns: UnresolvedTrack
Parameter Type query string Optional
requesterunknown
• static
getClosestTrack()
Finds the track that best matches the unresolved track.
Returns: Promise<Track>
Parameter Type unresolvedTrack UnresolvedTrack
• static
isTrack()
Checks if the provided argument is a valid Track.
Returns:
boolean
Parameter Type track unknown
• static
isUnresolvedTrack()
Checks if the provided argument is a valid UnresolvedTrack.
Returns:
boolean
Parameter Type track unknown
• static
setTrackPartial()
Returns:
void
Parameter Type partial string[]
• 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
Parameter Type track or tracks string
orstring[]
Table of Contents