CreateRequestBodyOptions
Documentation / @discordeno/rest / CreateRequestBodyOptions
Interface: CreateRequestBodyOptions
Defined in: types.ts:3489
Properties
body?
optionalbody?:any
Defined in: types.ts:3491
files?
optionalfiles?:FileContent[]
Defined in: types.ts:3494
headers?
optionalheaders?:Record<string,string>
Defined in: types.ts:3490
reason?
optionalreason?:string
Defined in: types.ts:3493
signal?
optionalsignal?:AbortSignal
Defined in: types.ts:3505
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:3492