Skip to main content
RegisterUserCommand<Options>(data): (target, method) => void
Defined in: packages/http-framework/src/lib/interactions/decorators/RegisterUserCommand.ts:23 Registers a user 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