Skip to content

DefaultQueueStore

Implements

Constructors

new DefaultQueueStore()

new DefaultQueueStore(): DefaultQueueStore

Returns

DefaultQueueStore

Defined in

src/structures/Queue.ts:66

Methods

delete()

delete(guildId: string): Promise<boolean>

Parameters

ParameterTypeDescription
guildIdstringThe guild ID

Returns

Promise<boolean>

The queue for the guild

Async

Delete a Database Value based of it’s guildId

Implementation of

QueueStoreManager.delete

Defined in

src/structures/Queue.ts:92


get()

get(guildId: string): Promise<StoredQueue>

Parameters

ParameterTypeDescription
guildIdstringThe guild ID

Returns

Promise<StoredQueue>

The queue for the guild

Async

get a Value (MUST RETURN UNPARSED!)

Implementation of

QueueStoreManager.get

Defined in

src/structures/Queue.ts:73


parse()

parse(value: StoredQueue): Promise<StoredQueue>

Parameters

ParameterTypeDescription
valueStoredQueueThe queue to parse

Returns

Promise<StoredQueue>

The parsed queue

Async

Parse the saved value back to the Queue (IF YOU DON’T NEED PARSING/STRINGIFY, then just return the value)

Implementation of

QueueStoreManager.parse

Defined in

src/structures/Queue.ts:110


set()

set(guildId: string, valueToStringify: any): Promise<boolean>

Parameters

ParameterTypeDescription
guildIdstringThe guild ID
valueToStringifyanyThe queue to set

Returns

Promise<boolean>

The queue for the guild

Async

Set a value inside a guildId (MUST BE UNPARSED)

Implementation of

QueueStoreManager.set

Defined in

src/structures/Queue.ts:83


stringify()

stringify(value: StoredQueue): Promise<StoredQueue>

Parameters

ParameterTypeDescription
valueStoredQueueThe queue to stringify

Returns

Promise<StoredQueue>

The stringified queue

Async

Transform the value(s) inside of the QueueStoreManager (IF YOU DON’T NEED PARSING/STRINGIFY, then just return the value)

Implementation of

QueueStoreManager.stringify

Defined in

src/structures/Queue.ts:101