Skip to main content

Module poll

Module poll 

Source
Expand description

Polls attached to messages.

A poll lives on its message: it has a question, up to 10 answers and, once people vote, results. The request body that creates a poll belongs to the REST layer.

Structs§

Answer
An answer of a poll.
AnswerCount
The vote count of one answer.
CreatePoll
A poll to create, sent with a new message or an interaction response.
Media
The text and/or emoji of a poll question or answer.
Poll
A poll.
Results
The results of a poll.

Enums§

LayoutType
The layout of a poll.