Properties
authPrefix?
Defined in: packages/http-framework/src/lib/Client.ts:294 The prefix to use for authentication in REST calls.optionalauthPrefix?:"Bearer"|"Bot"
Default
Since
2.0.0bodySizeLimit?
Defined in: packages/http-framework/src/lib/Client.ts:274 The body size limit in bytes.optionalbodySizeLimit?:number
Default
clientId?
Defined in: packages/http-framework/src/lib/Client.ts:287 The ID of the client.optionalclientId?:string
Default
discordPublicKey?
Defined in: packages/http-framework/src/lib/Client.ts:256 The public key from Discord, available under “General Information” after opening an application from Discord’s applications.optionaldiscordPublicKey?:string
Default
discordToken?
Defined in: packages/http-framework/src/lib/Client.ts:263 The Discord token used for authenticating requests outside of interaction responses.optionaldiscordToken?:string
Default
hmr?
Defined in: packages/http-framework/src/lib/Client.ts:304 The Hot Module Reloading options. When HMROptions.enabled isoptionalhmr?:HMROptions
true, Client#load starts a
HotModuleReloader that watches every store path and reloads pieces as their files change.
Remarks
HMR is meant for development only, keep it disabled in production.Default
Since
3.3.0httpReplyOnError?
Defined in: packages/http-framework/src/lib/Client.ts:280 Whether to reply with a 500 status code to Discord if an error occurs while processing an interaction.optionalhttpReplyOnError?:boolean
Default
logger?
Defined in: packages/http-framework/src/lib/Client.ts:311 The options for Client#logger, which is also exposed asoptionallogger?:ClientLoggerOptions
container.logger.
Since
3.4.0restOptions?
Defined in: packages/http-framework/src/lib/Client.ts:268 The options to be passed to the underlying REST library.optionalrestOptions?:Partial<RESTOptions>