Interface RESTAPIPoll

Hierarchy

  • Omit<APIPoll, "allow_multiselect" | "answers" | "expiry" | "layout_type" | "results">
  • Partial<Pick<APIPoll, "allow_multiselect" | "layout_type">>
    • RESTAPIPoll

Properties

allow_multiselect?: boolean

Whether a user can select multiple answers

Default

false
answers: Omit<APIPollAnswer, "answer_id">[]

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

Default

24
layout_type?: Default

The layout type of the poll

Default

PollLayoutType.Default
question: APIPollMedia

The question of the poll

Generated using TypeDoc