Skip to content

LithiumX v1.0.8


LithiumX / Track

Interface: Track

Defined in: src/Structures/Player.ts:578

If track partials are set some of these will be undefined as they were removed.

Properties

artworkUrl

readonly artworkUrl: string

Defined in: src/Structures/Player.ts:582

The artwork url of the track.


author

author: string

Defined in: src/Structures/Player.ts:590

The author of the track.


customData

customData: Record<string, unknown>

Defined in: src/Structures/Player.ts:610

Add your own data to the track.


duration

readonly duration: number

Defined in: src/Structures/Player.ts:592

The duration of the track.


identifier

readonly identifier: string

Defined in: src/Structures/Player.ts:588

The identifier of the track.


isrc

readonly isrc: string

Defined in: src/Structures/Player.ts:594

The ISRC of the track.


isSeekable

readonly isSeekable: boolean

Defined in: src/Structures/Player.ts:596

If the track is seekable.


isStream

readonly isStream: boolean

Defined in: src/Structures/Player.ts:598

If the track is a stream..


pluginInfo

pluginInfo: TrackPluginInfo

Defined in: src/Structures/Player.ts:608

Additional track info provided by plugins.


requester

readonly requester: string

Defined in: src/Structures/Player.ts:604

The user that requested the track.


sourceName

readonly sourceName: TrackSourceName

Defined in: src/Structures/Player.ts:584

The track source name.


thumbnail

readonly thumbnail: string

Defined in: src/Structures/Player.ts:602

The thumbnail of the track or null if it's a unsupported source.


title

title: string

Defined in: src/Structures/Player.ts:586

The title of the track.


track

readonly track: string

Defined in: src/Structures/Player.ts:580

The base64 encoded track.


uri

readonly uri: string

Defined in: src/Structures/Player.ts:600

The uri of the track.

Methods

displayThumbnail()

displayThumbnail(size?): string

Defined in: src/Structures/Player.ts:606

Displays the track thumbnail with optional size or null if it's a unsupported source.

Parameters

size?

Sizes

Returns

string