RestRequestRejection
Documentation / @discordeno/bot / RestRequestRejection
Interface: RestRequestRejection
Defined in: packages/rest/dist/types/types.d.ts:2997
Properties
body?
optional
body:string
|object
Defined in: packages/rest/dist/types/types.d.ts:3003
The returned body parsed if it was JSON, otherwise it will be the raw body as a string
error?
optional
error:string
Defined in: packages/rest/dist/types/types.d.ts:3004
ok
ok:
boolean
Defined in: packages/rest/dist/types/types.d.ts:2998
status
status:
number
Defined in: packages/rest/dist/types/types.d.ts:2999
statusText?
optional
statusText:string
Defined in: packages/rest/dist/types/types.d.ts:3001
The HTTP 1.1 status code text