Skip to main content
Version: Next

RESTAPIPoll

Hierarchy

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

Index

Properties

optionalinheritedallow_multiselect

allow_multiselect?: boolean = false

Whether a user can select multiple answers

answers

answers: Omit<APIPollAnswer, answer_id>[]

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

optionalduration

duration?: number = 24

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

optionalinheritedlayout_type

layout_type?: PollLayoutType = PollLayoutType

The layout type of the poll

inheritedquestion

question: APIPollMedia

The question of the poll