DefaultQueueStore
Defined in: src/structures/Queue.ts:63
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DefaultQueueStore(): DefaultQueueStore;
Defined in: src/structures/Queue.ts:65
Returns
Section titled “Returns”DefaultQueueStore
Methods
Section titled “Methods”delete()
Section titled “delete()”delete(guildId: string): boolean;
Defined in: src/structures/Queue.ts:91
Delete the queue for a guild
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
guildId | string | The guild ID |
Returns
Section titled “Returns”boolean
The queue for the guild
Implementation of
Section titled “Implementation of”get(guildId: string): StoredQueue;
Defined in: src/structures/Queue.ts:72
Get the queue for a guild
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
guildId | string | The guild ID |
Returns
Section titled “Returns”The queue for the guild
Implementation of
Section titled “Implementation of”parse()
Section titled “parse()”parse(value: | string| StoredQueue): Partial<StoredQueue>;
Defined in: src/structures/Queue.ts:109
Parse the queue for a guild
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
value | | string | StoredQueue | The queue to parse |
Returns
Section titled “Returns”Partial
<StoredQueue
>
The parsed queue
Implementation of
Section titled “Implementation of”set(guildId: string, valueToStringify: any): boolean;
Defined in: src/structures/Queue.ts:82
Set the queue for a guild
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
guildId | string | The guild ID |
valueToStringify | any | The queue to set |
Returns
Section titled “Returns”boolean
The queue for the guild
Implementation of
Section titled “Implementation of”stringify()
Section titled “stringify()”stringify(value: | string | StoredQueue): | string | StoredQueue;
Defined in: src/structures/Queue.ts:100
Stringify the queue for a guild
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
value | | string | StoredQueue | The queue to stringify |
Returns
Section titled “Returns”| string
| StoredQueue
The stringified queue