ChoiceMenu beta
Interface of @v12-engine/client
ts
export interface ChoiceMenuA choice as the menu shows it: its name, question, the answers offered with their keys, and how long it waits (seconds of the screen's from since, performance.now() when it showed)
Members
default
ts
default?: string;The id of the answer taken when the time is up
name
ts
name: string;The choice's name: the cut param the answer is kept in
options
ts
options: {
id: string;
label: string;
key: string;
}[];The answers offered, each with its id, words and key
question
ts
question?: string;The question shown over the answers, if any
seconds
ts
seconds?: number;The most seconds it waits for an answer; without a limit when left out
since
ts
since: number;When the menu showed, in performance.now() milliseconds, which the waiting time counts from