Skip to main content
Module

x/discord_api_types/payloads/mod.ts>APIPoll

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface APIPoll
Re-export
import { type APIPoll } from "https://deno.land/x/discord_api_types@0.37.82/payloads/mod.ts";

Properties

question: APIPollMedia

The question of the poll

answers: APIPollAnswer[]

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

expiry: string

The time when the poll ends (IS08601 timestamp)

allow_multiselect: boolean

Whether a user can select multiple answers

layout_type: PollLayoutType

The layout type of the poll

optional
results: APIPollResults

The results of the poll