Skip to main content
RegisterMessageCommand<Options>(data): (target, method) => void
Defined in: packages/http-framework/src/lib/interactions/decorators/RegisterMessageCommand.ts:23 Registers a message command.

Type Parameters

Options

Options extends PieceOptions = PieceOptions The options type for the command.

Parameters

data

CommandData The command to register.

Returns

A method decorator function, does not override the method. (target, method) => void

Example