Skip to content

QueueSaver

Constructors

new QueueSaver()

new QueueSaver(options: ManagerQueueOptions): QueueSaver

Parameters

ParameterType
optionsManagerQueueOptions

Returns

QueueSaver

Defined in

src/structures/Queue.ts:19

Properties

PropertyModifierTypeDescriptionDefined in
optionspublicobjectThe options for the queue saversrc/structures/Queue.ts:16
options.maxPreviousTrackspublicnumber-src/structures/Queue.ts:17

Methods

delete()

delete(guildId: string): Promise<boolean | void>

Delete the queue for a guild

Parameters

ParameterTypeDescription
guildIdstringThe guild ID

Returns

Promise<boolean | void>

The queue for the guild

Defined in

src/structures/Queue.ts:40


get()

get(guildId: string): Promise<Partial<StoredQueue>>

Get the queue for a guild

Parameters

ParameterTypeDescription
guildIdstringThe guild ID

Returns

Promise<Partial<StoredQueue>>

The queue for the guild

Defined in

src/structures/Queue.ts:31


set()

set(guildId: string, valueToStringify: StoredQueue): Promise<boolean | void>

Set the queue for a guild

Parameters

ParameterTypeDescription
guildIdstringThe guild ID
valueToStringifyStoredQueueThe queue to set

Returns

Promise<boolean | void>

The queue for the guild

Defined in

src/structures/Queue.ts:50


sync()

sync(guildId: string): Promise<Partial<StoredQueue>>

Sync the queue for a guild

Parameters

ParameterTypeDescription
guildIdstringThe guild ID

Returns

Promise<Partial<StoredQueue>>

The queue for the guild

Defined in

src/structures/Queue.ts:59