Skip to content

DefaultQueueStore

Defined in: src/structures/Queue.ts:63

new DefaultQueueStore(): DefaultQueueStore;

Defined in: src/structures/Queue.ts:65

DefaultQueueStore

delete(guildId: string): boolean;

Defined in: src/structures/Queue.ts:91

Delete the queue for a guild

ParameterTypeDescription
guildIdstringThe guild ID

boolean

The queue for the guild

QueueStoreManager.delete


get(guildId: string): StoredQueue;

Defined in: src/structures/Queue.ts:72

Get the queue for a guild

ParameterTypeDescription
guildIdstringThe guild ID

StoredQueue

The queue for the guild

QueueStoreManager.get


parse(value:
| string
| StoredQueue): Partial<StoredQueue>;

Defined in: src/structures/Queue.ts:109

Parse the queue for a guild

ParameterTypeDescription
value| string | StoredQueueThe queue to parse

Partial<StoredQueue>

The parsed queue

QueueStoreManager.parse


set(guildId: string, valueToStringify: any): boolean;

Defined in: src/structures/Queue.ts:82

Set the queue for a guild

ParameterTypeDescription
guildIdstringThe guild ID
valueToStringifyanyThe queue to set

boolean

The queue for the guild

QueueStoreManager.set


stringify(value:
| string
| StoredQueue):
| string
| StoredQueue;

Defined in: src/structures/Queue.ts:100

Stringify the queue for a guild

ParameterTypeDescription
value| string | StoredQueueThe queue to stringify

| string | StoredQueue

The stringified queue

QueueStoreManager.stringify