declare class PollAnswerBuilder implements JSONEncodable<Omit<APIPollAnswer, 'answer_id'>>A builder that creates API-compatible JSON data for poll answers.
Constructors
externalconstructor(data?: Partial<Omit<APIPollAnswer, 'answer_id'>>)
data?: Partial<Omit<APIPollAnswer, 'answer_id'>>
Creates a new poll answer.
external setMedia(options: APIPollMedia | PollAnswerMediaBuilder | ((builder: PollAnswerMediaBuilder) => PollAnswerMediaBuilder)) : this
options: APIPollMedia | PollAnswerMediaBuilder | ((builder: PollAnswerMediaBuilder) => PollAnswerMediaBuilder)
Sets the media for this poll answer.
external toJSON(validationOverride?: boolean) : Omit<APIPollAnswer, 'answer_id'>
validationOverride?: boolean
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.
external updateMedia(updater: (builder: PollAnswerMediaBuilder) => void) : this
updater: (builder: PollAnswerMediaBuilder) => void
Updates the media of this poll answer.