interface RESTAPIPoll {
    allow_multiselect?: boolean;
    answers: APIBasePollAnswer[];
    duration?: number;
    layout_type?: Default;
    question: APIPollMedia;
}

Hierarchy (View Summary)

Properties

allow_multiselect?: boolean

Whether a user can select multiple answers

false

Each of the answers available in the poll, up to 10

duration?: number

Number of hours the poll should be open for, up to 32 days

24

layout_type?: Default

The layout type of the poll

PollLayoutType.Default

question: APIPollMedia

The question of the poll