DefaultQueueStore
Implements
Constructors
new DefaultQueueStore()
Returns
Defined in
Methods
delete()
Parameters
Parameter | Type | Description |
---|---|---|
guildId | string | The 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
get()
Parameters
Parameter | Type | Description |
---|---|---|
guildId | string | The guild ID |
Returns
Promise
<StoredQueue
>
The queue for the guild
Async
get a Value (MUST RETURN UNPARSED!)
Implementation of
Defined in
parse()
Parameters
Parameter | Type | Description |
---|---|---|
value | StoredQueue | The 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
set()
Parameters
Parameter | Type | Description |
---|---|---|
guildId | string | The guild ID |
valueToStringify | any | The queue to set |
Returns
Promise
<boolean
>
The queue for the guild
Async
Set a value inside a guildId (MUST BE UNPARSED)
Implementation of
Defined in
stringify()
Parameters
Parameter | Type | Description |
---|---|---|
value | StoredQueue | The 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