Skip to content

UiInteractionResult

type UiInteractionResult<T = UiJson> =
| { status: "submit"; value: T }
| { status: "cancel"; reason: "player" | "script" }
| { status: "timeout" }
| { status: "failed"; code: string };
Value Meaning
submit The page submitted an answer. value is JSON, or the value returned by your response parser.
cancel The player used Escape/cancel, or a script closed the view.
timeout The human-response deadline expired.
failed The resource, page or UI application failed, or the connection/gamemode lifetime ended.