nyx Typedoc
    Preparing search index...

    Interface SessionMiddleware<Args, Types>

    An object that intercepts and validates/decorates the execution of something.

    interface SessionMiddleware<
        Args extends unknown[],
        Types extends InteractionTypes = InteractionTypes,
    > {
        check(checked: Session, ...args: Args): Awaitable<MiddlewareResponse>;
        getPriority(): Priority;
        isProtected(): boolean;
        protect(): this;
        unprotect(): this;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index