RESTAPIPoll

export interface RESTAPIPoll extends Omit<APIPoll, 'allow_multiselect' | 'answers' | 'expiry' | 'layout_type' | 'results'>, Partial<Pick<APIPoll, 'allow_multiselect' | 'layout_type'>>
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

Extends

Omit<APIPoll, 'allow_multiselect' | 'answers' | 'expiry' | 'layout_type' | 'results'>

Extends

Partial<Pick<APIPoll, 'allow_multiselect' | 'layout_type'>>
answers:Omit<APIPollAnswer, 'answer_id'>[]
Each of the answers available in the poll, up to 10
duration?:number
Number of hours the poll should be open for, up to 32 days 24