Skip to main content
Defined in: packages/http-framework-test-utils/src/TestableClient.ts:10

Extends

  • Client
This class extends Client from @wolfstar/http-framework. Its inherited surface (properties like options, logger, server, plugins, the registry accessor, and EventEmitter-style methods like on/once/emit/use) isn’t reproduced here — see the http-framework API reference for that class’s full documentation. Only the members this class adds or overrides are listed below.

Constructors

Constructor

new TestableClient(options?): TestableClient
Defined in: packages/http-framework-test-utils/src/TestableClient.ts:11

Parameters

options?
Partial<ClientOptions> = {}

Returns

TestableClient

Overrides

Client.constructor

Methods

handleHttpMessage()

handleHttpMessage(interaction, response): Promise<ServerResponse<IncomingMessage>>
Defined in: packages/http-framework-test-utils/src/TestableClient.ts:15

Parameters

interaction
APIApplicationCommandAutocompleteInteraction | APIChatInputApplicationCommandInteraction | APIModalSubmitInteraction | APIContextMenuInteraction | APIMessageComponentInteraction | APIPingInteraction
response
ServerResponse

Returns

Promise<ServerResponse<IncomingMessage>>

Overrides

Client.handleHttpMessage