PollCreateOptions

interface PollCreateOptions

Configuration for a poll attached to a new message.

exported from lib.weeble.d

Properties

Property

Type

Description

allowMultiselect?

boolean

Indicates whether members can select multiple answers.

answers

string[]

Answer choices. Discord accepts between 2 and 10 answers.

duration

number

Duration in hours. Discord accepts whole numbers from 1 through 768.

question

string

The question text for the poll.