Preview environment

interface APIPoll

export interface APIPoll

https://discord.com/developers/docs/resources/poll#poll-object-poll-object-structure

allow_multiselect : boolean

Whether a user can select multiple answers false

answers : APIPollAnswer[]

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

expiry : string

The time when the poll ends (IS08601 timestamp)

layout_type : PollLayoutType

The layout type of the poll PollLayoutType.Default

question : APIPollMedia

The question of the poll

optional
results? : APIPollResults

The results of the poll