Skip to main content
Defined in: packages/http-framework/src/lib/Client.ts:249

Properties

authPrefix?

optional authPrefix?: "Bearer" | "Bot"
Defined in: packages/http-framework/src/lib/Client.ts:294 The prefix to use for authentication in REST calls.

Default

Since

2.0.0

bodySizeLimit?

optional bodySizeLimit?: number
Defined in: packages/http-framework/src/lib/Client.ts:274 The body size limit in bytes.

Default


clientId?

optional clientId?: string
Defined in: packages/http-framework/src/lib/Client.ts:287 The ID of the client.

Default


discordPublicKey?

optional discordPublicKey?: string
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.

Default


discordToken?

optional discordToken?: string
Defined in: packages/http-framework/src/lib/Client.ts:263 The Discord token used for authenticating requests outside of interaction responses.

Default


hmr?

optional hmr?: HMROptions
Defined in: packages/http-framework/src/lib/Client.ts:304 The Hot Module Reloading options. When HMROptions.enabled is 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.0

httpReplyOnError?

optional httpReplyOnError?: boolean
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.

Default


logger?

optional logger?: ClientLoggerOptions
Defined in: packages/http-framework/src/lib/Client.ts:311 The options for Client#logger, which is also exposed as container.logger.

Since

3.4.0

restOptions?

optional restOptions?: Partial<RESTOptions>
Defined in: packages/http-framework/src/lib/Client.ts:268 The options to be passed to the underlying REST library.