Skip to content

createMiddleware

1
createMiddleware<T, C>(data: MiddlewareContext<T, C>): MiddlewareContext<T, C>

Type parameters

Type parameterValue
Tany
C extends MenuCommandContext<UserCommandInteraction<boolean> | MessageCommandInteraction<boolean>, never> | CommandContext<Object, never>MenuCommandContext<UserCommandInteraction<boolean> | MessageCommandInteraction<boolean>, never> | CommandContext<Object, never>

Parameters

ParameterType
dataMiddlewareContext<T, C>

Returns

MiddlewareContext<T, C>

Source

seyfert/src/commands/applications/options.ts:87