Skip to content

DefaultQueueStore

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

new DefaultQueueStore(): DefaultQueueStore;

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

DefaultQueueStore

delete(guildId: string): boolean;

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

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:69

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:106

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:79

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:97

Stringify the queue for a guild

ParameterTypeDescription
value| string | StoredQueueThe queue to stringify

| string | StoredQueue

The stringified queue

QueueStoreManager.stringify