moonlink.js / Exports / MoonlinkQueue
Class: MoonlinkQueue
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new MoonlinkQueue(manager
, data
): MoonlinkQueue
Parameters
Name | Type |
---|---|
manager | MoonlinkManager |
data | Object |
data.guildId | string |
Returns
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
Name | Type |
---|---|
data | MoonlinkTrack |
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
Name | Type |
---|---|
identifier | string |
Returns
boolean
Defined in
src/@Entities/MoonlinkQueue.ts:41
push
▸ push(data
): void
Parameters
Name | Type |
---|---|
data | any |
Returns
void
Defined in
src/@Entities/MoonlinkQueue.ts:63
remove
▸ remove(position
): boolean
Parameters
Name | Type |
---|---|
position | number |
Returns
boolean
Defined in
src/@Entities/MoonlinkQueue.ts:82
setQueue
▸ setQueue(queue
): void
Parameters
Name | Type |
---|---|
queue | MoonlinkTrack |
Returns
void
Defined in
src/@Entities/MoonlinkQueue.ts:108
shift
▸ shift(): any
Returns
any