Skip to main content
Module

x/discord_api_types/v10.ts>RESTAPIPoll

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface RESTAPIPoll
implements Omit<APIPoll,
| "allow_multiselect"
| "answers"
| "expiry"
| "layout_type"
| "results"
>, Partial<Pick<APIPoll, "allow_multiselect" | "layout_type">>
Re-export
import { type RESTAPIPoll } from "https://deno.land/x/discord_api_types@0.37.100/v10.ts";

Properties

answers: Omit<APIPollAnswer, "answer_id">[]

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

optional
duration: number

Number of hours the poll should be open for, up to 32 days