Skip to main content
Version: v1.2.1

Track

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Track(data)

Parameters

NameType
dataITrack

Defined in

lib/queue/Track.ts:24

Properties

author

Readonly author: string

Defined in

lib/queue/Track.ts:10


duration

Readonly duration: Timestamp

Defined in

lib/queue/Track.ts:11


encodedTrack

encodedTrack: string

Defined in

lib/queue/Track.ts:20


identifier

Readonly identifier: string

Defined in

lib/queue/Track.ts:7


isSeekable

Readonly isSeekable: boolean

Defined in

lib/queue/Track.ts:9


isStream

Readonly isStream: boolean

Defined in

lib/queue/Track.ts:12


metadata

Optional metadata: Metadata

Defined in

lib/queue/Track.ts:18


position

Optional position: number

Defined in

lib/queue/Track.ts:14


requester

requester: unknown

Defined in

lib/queue/Track.ts:22


source

Readonly source: string

Defined in

lib/queue/Track.ts:13


title

Readonly title: string

Defined in

lib/queue/Track.ts:15


uri

Readonly uri: string

Defined in

lib/queue/Track.ts:16

Accessors

thumbnail

get thumbnail(): null | string

Returns

null | string

Defined in

lib/queue/Track.ts:42

Methods

setRequester

setRequester(requester): void

Parameters

NameType
requesterunknown

Returns

void

Defined in

lib/queue/Track.ts:52