moonlink.js / Exports / MoonlinkQueue

Class: MoonlinkQueue

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new MoonlinkQueue(manager, data): MoonlinkQueue

Parameters

NameType
managerMoonlinkManager
dataObject
data.guildIdstring

Returns

MoonlinkQueue

Defined in

src/@Entities/MoonlinkQueue.ts:13

Properties

db

db: MoonlinkDatabase = Structure.db

Defined in

src/@Entities/MoonlinkQueue.ts:9


guildId

Private guildId: string

Defined in

src/@Entities/MoonlinkQueue.ts:10


manager

Private manager: MoonlinkManager

Defined in

src/@Entities/MoonlinkQueue.ts:11

Accessors

all

get all(): any

Returns

any

Defined in

src/@Entities/MoonlinkQueue.ts:100


size

get size(): number

Returns

number

Defined in

src/@Entities/MoonlinkQueue.ts:78

Methods

add

add(data, position?): void

Parameters

NameType
dataMoonlinkTrack
position?number

Returns

void

Defined in

src/@Entities/MoonlinkQueue.ts:24


clear

clear(): boolean

Returns

boolean

Defined in

src/@Entities/MoonlinkQueue.ts:69


first

first(): any

Returns

any

Defined in

src/@Entities/MoonlinkQueue.ts:49


getQueue

getQueue(): MoonlinkTrack

Returns

MoonlinkTrack

Defined in

src/@Entities/MoonlinkQueue.ts:104


has

has(identifier): boolean

Parameters

NameType
identifierstring

Returns

boolean

Defined in

src/@Entities/MoonlinkQueue.ts:41


push

push(data): void

Parameters

NameType
dataany

Returns

void

Defined in

src/@Entities/MoonlinkQueue.ts:63


remove

remove(position): boolean

Parameters

NameType
positionnumber

Returns

boolean

Defined in

src/@Entities/MoonlinkQueue.ts:82


setQueue

setQueue(queue): void

Parameters

NameType
queueMoonlinkTrack

Returns

void

Defined in

src/@Entities/MoonlinkQueue.ts:108


shift

shift(): any

Returns

any

Defined in

src/@Entities/MoonlinkQueue.ts:54