Class SceneContext<S>

Type Parameters

  • S extends Record<string, unknown>

Constructors

Properties

canceled: boolean = false

Is the scene canceled, used in leaveHandler()

ctx.scene.leave({
canceled: true
});
context: IContext<Record<string, any>>
lastAction: LastAction = LastAction.NONE
leaving: boolean = false

Controlled behavior leave

repository: SceneRepository

Lazy session for submodules

ctx.scene.session.moduleFlag = true;
sessionKey: string
state: S

Base namespace for user input

ctx.scene.username = myInputText;

Accessors

Methods

  • Enter to scene

    ctx.scene.enter('signup');
    ctx.scene.enter('signup', {
    silent: true,
    state: {
    username: 'Super_Developer'
    }
    });

    Parameters

    Returns Promise<void>

Generated using TypeDoc