nyx Typedoc
    Preparing search index...

    Interface SessionPromiseRepository<Types>

    An object that observes the lifecycle of a bot.

    interface SessionPromiseRepository<
        Types extends InteractionTypes = InteractionTypes,
    > {
        getPromise<const Of extends Session<unknown, Types>>(
            session: Of,
        ): Promise<SessionEndData<ExtractSessionResult<Of>>>;
        onStart(): Awaitable<void>;
        onStop(): Awaitable<void>;
        reject<const Of extends Session<unknown, Types>>(
            session: Of,
            reason?: Error,
        ): void;
        resolve<const Of extends Session<unknown, Types>>(
            session: Of,
            data: SessionEndData<ExtractSessionResult<Of>>,
        ): void;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index