Skip to main content
Version: v2.9.2

Interface: Track

Represents a playable audio track used internally by the player. Includes metadata, playback options, and plugin data.

Property Type Description Optional
trackstringBase64-encoded track string.
artworkUrlstring | nullURL to the track's artwork image.
sourceNameTrackSourceTypesThe source platform of the track.
titlestringTitle of the track.
identifierstringUnique identifier of the track (e.g., YouTube video ID).
authorstringTrack author or channel.
durationnumberDuration of the track in milliseconds.
isrcstringISRC (International Standard Recording Code) for the track.
isSeekablebooleanIndicates whether the track can be seeked.
isStreambooleanIndicates whether the track is a live stream.
uristringTrack's original source URL.
thumbnailstring | nullTrack thumbnail URL or null if unsupported.
requesterAnyUserDiscord user who requested the track, if available.
displayThumbnail(size?)Sizes | nullReturns a track thumbnail URL with optional resolution.
pluginInfoTrackPluginInfoAdditional plugin-specific metadata for the track.
customDataRecord<string, unknown>Developer-defined metadata attached to the track.