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
readonlyartworkUrl: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
readonlyduration:number
Defined in: src/Structures/Player.ts:592
The duration of the track.
identifier
readonlyidentifier:string
Defined in: src/Structures/Player.ts:588
The identifier of the track.
isrc
readonlyisrc:string
Defined in: src/Structures/Player.ts:594
The ISRC of the track.
isSeekable
readonlyisSeekable:boolean
Defined in: src/Structures/Player.ts:596
If the track is seekable.
isStream
readonlyisStream: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
readonlyrequester:string
Defined in: src/Structures/Player.ts:604
The user that requested the track.
sourceName
readonlysourceName:TrackSourceName
Defined in: src/Structures/Player.ts:584
The track source name.
thumbnail
readonlythumbnail: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
readonlytrack:string
Defined in: src/Structures/Player.ts:580
The base64 encoded track.
uri
readonlyuri: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?
Returns
string