QueueSaver
Constructors
new QueueSaver()
Parameters
Parameter | Type |
---|---|
options | ManagerQueueOptions |
Returns
Defined in
Properties
Property | Modifier | Type | Description | Defined in |
---|---|---|---|---|
options | public | object | The options for the queue saver | src/structures/Queue.ts:16 |
options.maxPreviousTracks | public | number | - | src/structures/Queue.ts:17 |
Methods
delete()
Delete the queue for a guild
Parameters
Parameter | Type | Description |
---|---|---|
guildId | string | The guild ID |
Returns
Promise
<boolean
| void
>
The queue for the guild
Defined in
get()
Get the queue for a guild
Parameters
Parameter | Type | Description |
---|---|---|
guildId | string | The guild ID |
Returns
Promise
<Partial
<StoredQueue
>>
The queue for the guild
Defined in
set()
Set the queue for a guild
Parameters
Parameter | Type | Description |
---|---|---|
guildId | string | The guild ID |
valueToStringify | StoredQueue | The queue to set |
Returns
Promise
<boolean
| void
>
The queue for the guild
Defined in
sync()
Sync the queue for a guild
Parameters
Parameter | Type | Description |
---|---|---|
guildId | string | The guild ID |
Returns
Promise
<Partial
<StoredQueue
>>
The queue for the guild