Skip to main content
Version: v2.0.0

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:11


duration

Readonly duration: Timestamp

Defined in

lib/queue/Track.ts:12


encoded

encoded: string

Defined in

lib/queue/Track.ts:19


identifier

Readonly identifier: string

Defined in

lib/queue/Track.ts:8


isSeekable

Readonly isSeekable: boolean

Defined in

lib/queue/Track.ts:14


isStream

Readonly isStream: boolean

Defined in

lib/queue/Track.ts:15


metadata

Optional metadata: Metadata

Defined in

lib/queue/Track.ts:20


position

Optional position: number

Defined in

lib/queue/Track.ts:18


requester

requester: null | User

Defined in

lib/queue/Track.ts:17


source

Readonly source: string

Defined in

lib/queue/Track.ts:13


title

Readonly title: string

Defined in

lib/queue/Track.ts:10


uri

Readonly uri: string

Defined in

lib/queue/Track.ts:9

Accessors

thumbnail

get thumbnail(): null | string

Returns

null | string

Defined in

lib/queue/Track.ts:42

Methods

setRequester

setRequester(requester): void

Parameters

NameType
requesternull

Returns

void

Defined in

lib/queue/Track.ts:52