Discord Player

SerializedTrackData

Public Track fields stored by the versioned persistence format.

You are reading the v8 docsDev
Type AliasTypeScript@discord-player/plugin-host
View sourcepackages/plugin-host/src/structures/track-types.ts:130
type SerializedTrackData

Public Track fields stored by the versioned persistence format.

Properties

sourceReferenceoptional

sourceReference?: ProviderReference

Optional provider identity, absent in older version 1 payloads.

lyricsReferenceoptional

lyricsReference?: ProviderReference

Optional portable lyrics provider affinity.

id

id: string

Stable Track identifier.

title

title: string

Display title.

author

author: string

Track author or artist.

description

description: string

Track description.

url

url: string

Source page URL.

thumbnail

thumbnail: string

Thumbnail URL.

durationMS

durationMS: number

Duration in milliseconds.

views

views: number

View or play count when available.

requestedBy

requestedBy: string | null

Portable requester identity, or null when unknown.

source

source: string

Provider-defined source identifier.

live

live: boolean

Whether the Track is a live stream.

metadata

metadata: JSONValue | null

JSON-safe application metadata, or null when absent.

On this page