Interface DualButton<T, CallbackResponse>

Dual button content.

Note that dual buttons do not allow an icon to be used

interface DualButton<T extends string, CallbackResponse> {
    callback?: (selected: string) => Promise<CallbackResponse>;
    name: T;
    text: ScriptDialogueString;
}

Type Parameters

  • T extends string
  • CallbackResponse

Properties

Properties

callback?: (selected: string) => Promise<CallbackResponse>

A function that is executed when the button is pressed. This function is executed before returning from DualButtonScriptDialogue#open.

name: T

Name used by the button, response is recorded using this name

Displayed button's value