The MessageFormResponse class in @minecraft/server-ui.
Class in @minecraft/server-ui
Extends FormResponse
import { MessageFormResponse } from '@minecraft/server-ui';Properties
Section titled “Properties”selection
Section titled “selection”read-only optional
readonly selection?: number;0 for button1, 1 for button2.