Functioncorev0.14.0Decorator
Throws:
A SeedcordTypeError when
priorityis not a finite number.
RegisterInteractionMiddleware<Kinds>(
options?: InteractionMiddlewareOptions<Kinds>
): <TCtor extends AnyMiddlewareCtor>(
ctor: AssertMiddlewareKinds<Kinds[number], TCtor>
) => void\@RegisterInteractionMiddleware({ kinds: [InteractionKind.Button], priority: 10 })
class Audit extends InteractionMiddleware<InteractionKind.Button> {
async execute() {
this.logger.info(this.dispatch.routeId);
}
}Kinds
Kindsoptions?
options?: InteractionMiddlewareOptions<Kinds>The kinds that this middleware runs on and its ordering.