Interface: Track
Represents a playable audio track used internally by the player. Includes metadata, playback options, and plugin data.
Property Type Description Optional trackstring Base64-encoded track string. artworkUrlstring URL to the track's artwork image. sourceNameTrackSourceTypesThe source platform of the track. titlestring Title of the track. identifierstring Unique identifier of the track (e.g., YouTube video ID). authorstring Track author or channel. durationnumber Duration of the track in milliseconds. isrcstring ISRC (International Standard Recording Code) for the track. isSeekableboolean Indicates whether the track can be seeked. isStreamboolean Indicates whether the track is a live stream. uristring Track's original source URL. thumbnailstring | null Track thumbnail URL or nullif unsupported.requesterPortableUserDiscord user who requested the track, if available. displayThumbnail(size?)SizesReturns a track thumbnail URL with optional resolution. pluginInfoTrackPluginInfoAdditional plugin-specific metadata for the track. customDataRecord<string, unknown> Developer-defined metadata attached to the track.