CreateRequestBodyOptions
Documentation / @discordeno/rest / CreateRequestBodyOptions
Interface: CreateRequestBodyOptions
Defined in: types.ts:235
Properties
body?
optionalbody?:any
Defined in: types.ts:237
files?
optionalfiles?:FileContent[]
Defined in: types.ts:240
headers?
optionalheaders?:Record<string,string>
Defined in: types.ts:236
reason?
optionalreason?:string
Defined in: types.ts:239
signal?
optionalsignal?:AbortSignal
Defined in: types.ts:251
An AbortSignal to cancel the request.
Remarks
Aborting rejects a request that is still waiting in the queue right away and guarantees it is never sent. An attempt that is already in flight gets its connection cancelled as well, though that cannot recall it: Discord (or the proxy) may have received it and may still process it, only the response is discarded. This lets a rest proxy drop requests that nobody is waiting on anymore (client disconnect, deadline) instead of leaving them in the queue.
unauthorized?
optionalunauthorized?:boolean
Defined in: types.ts:238