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

Whether a user can select multiple answers

@default

false

answers

answers: Omit<APIPollAnswer, answer_id>[]

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

optionalduration

duration?: number

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

@default

24

optionallayout_type

layout_type?: Default

The layout type of the poll

@default

PollLayoutType.Default

question

question: APIPollMedia

The question of the poll