Skip to main content

QueueOptions

@discordeno/bot


Documentation / @discordeno/bot / QueueOptions

Interface: QueueOptions

Defined in: packages/rest/dist/types/queue.d.ts:60

Properties

deleteQueueDelay?

optional deleteQueueDelay: number

Defined in: packages/rest/dist/types/queue.d.ts:72

The time in milliseconds to wait before deleting this queue if it is empty. Defaults to 60000(one minute).


identifier

identifier: string

Defined in: packages/rest/dist/types/queue.d.ts:74

The base key that identifies this queue in the rest manager


interval?

optional interval: number

Defined in: packages/rest/dist/types/queue.d.ts:66

The time in milliseconds that discord allows to make the max number of invalid requests. Defaults to 0


max?

optional max: number

Defined in: packages/rest/dist/types/queue.d.ts:64

Max number of requests allowed in this this. Defaults to 1.


remaining?

optional remaining: number

Defined in: packages/rest/dist/types/queue.d.ts:62

How many requests are remaining. Defaults to 1


timeoutId?

optional timeoutId: Timeout

Defined in: packages/rest/dist/types/queue.d.ts:68

timer to reset to 0


url

url: string

Defined in: packages/rest/dist/types/queue.d.ts:70

The url this queue will be handling.