Skip to main content
Version: 0.37.110

RESTAPIPoll

Hierarchy

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

Index

Properties

optionalallow_multiselect

allow_multiselect?: boolean = ```ts 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 = ```ts 24 ```

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

optionallayout_type

layout_type?: Default = Default

The layout type of the poll

question

question: APIPollMedia

The question of the poll