Skip to content

DefaultQueueStore

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

new DefaultQueueStore(): DefaultQueueStore;

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

DefaultQueueStore

delete(guildId: string): boolean;

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

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

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

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

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

Stringify the queue for a guild

ParameterTypeDescription
value| string | StoredQueueThe queue to stringify

| string | StoredQueue

The stringified queue

QueueStoreManager.stringify