interface APIPoll {
    allow_multiselect: boolean;
    answers: APIPollAnswer[];
    expiry: string;
    layout_type: Default;
    question: APIPollMedia;
    results?: APIPollResults;
}

Hierarchy (View Summary)

Properties

allow_multiselect: boolean

Whether a user can select multiple answers

false

answers: APIPollAnswer[]

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

expiry: string

The time when the poll ends (IS08601 timestamp)

layout_type: Default

The layout type of the poll

PollLayoutType.Default

question: APIPollMedia

The question of the poll

results?: APIPollResults

The results of the poll