nyx Typedoc
    Preparing search index...

    Interface PaginationSession<Result, Types>

    A type of session that can be paginated. For example, ListPaginationSession or StagePaginationSession.

    interface PaginationSession<
        Result,
        Types extends InteractionTypes = InteractionTypes,
    > {
        buildCustomId(extra?: string): string;
        buildPageCustomId(page: number, extra?: string): string;
        getBot(): NyxBot;
        getChannelId(): string;
        getCurrentPage(): number;
        getCustomIdData(extra?: string): SessionCustomIdData;
        getEndPromise(): Promise<SessionEndData<Result>>;
        getGuildId(): string | null;
        getId(): string;
        getMeta(): Readonly<Metadata> | null;
        getNextPage(): number | null;
        getPreviousPage(): number | null;
        getResult(): Result | null;
        getStartFilter(): SessionStartFilterResolvable<Result, Types> | null;
        getStartInteraction(): SessionStartInteraction<Types>;
        getState(): SessionState;
        getTTL(): number;
        getUpdateFilter(): SessionUpdateFilterResolvable<Result, Types> | null;
        getUserId(): string;
        hasReplied(): boolean;
        onEnd(
            reason: string,
            code: SessionEndCode,
            meta: Metadata,
        ): Awaitable<void>;
        onStart(meta: Metadata): Awaitable<void>;
        onUpdate(
            interaction: SessionUpdateInteraction<Types>,
            meta: Metadata,
        ): Awaitable<boolean>;
        setState(state: SessionState): void;
        start(): Awaitable<void>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index