interface RESTAPIPoll

extends

Omit<APIPoll, 'allow_multiselect' | 'answers' | 'expiry' | 'layout_type' | 'results'>Partial<Pick<APIPoll, 'allow_multiselect' | 'layout_type'>>
external
export interface RESTAPIPoll extends Omit<APIPoll, 'allow_multiselect' | 'answers' | 'expiry' | 'layout_type' | 'results'>, Partial<Pick<APIPoll, 'allow_multiselect' | 'layout_type'>>

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

external
answers : Omit<APIPollAnswer, 'answer_id'>[]

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

optionalexternal
duration? : number

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