Interface MessagePollOptions

interface MessagePollOptions {
    allowMultiselect: boolean;
    answers: PollAnswerOption[];
    duration: number;
    layoutType?: DEFAULT;
    question: PollQuestion;
}

Properties

allowMultiselect: boolean

If multiple votes can be selected.

answers: PollAnswerOption[]

The answers for this poll. Up to 10 can be specified.

duration: number

The duration of this poll in hours. Up to 7 days (168 hours)

layoutType?: DEFAULT
question: PollQuestion

The question for the poll.