answer

fun answer(vararg options: Int)

Submits an answer for an interactive element. Each selected option receives one vote.

Parameters

options

The indices of the selected answer options.

Throws

on failure, e.g., if the element is not open or the selection is invalid.


fun answer(options: IntArray)

Submits an answer for an interactive element. Each selected option receives one vote.

Parameters

options

An array of the selected answer option indices.

Throws

on failure, e.g., if the element is not open or the selection is invalid.


fun answer(answer: Answer)

Submits a detailed answer for an interactive element, allowing for multiple votes per option.

Parameters

answer

An Answer object containing the user's selection and vote distribution.

Throws

on failure, e.g., if the element is not open or the vote is invalid.