HandlerFunction
Type Alias: HandlerFunction<Context, InteractionArg>
Section titled “Type Alias: HandlerFunction<Context, InteractionArg>”HandlerFunction<
Context,InteractionArg> = (interaction) =>Promise<any> |any
Defined in: types/handlers.ts:5
Signature for a handler’s execute function, typed to the specific interaction it receives.
Type Parameters
Section titled “Type Parameters”Context
Section titled “Context”Context extends BaseInteractionContext = BaseInteractionContext
InteractionArg
Section titled “InteractionArg”InteractionArg extends AnyInteraction<Context> = AnyInteraction<Context>
Parameters
Section titled “Parameters”interaction
Section titled “interaction”InteractionArg
Returns
Section titled “Returns”Promise<any> | any
