class PollAnswerMediaBuilder
extends
PollMediaBuilderexport declare class PollAnswerMediaBuilder extends PollMediaBuilder
A builder that creates API-compatible JSON data for the media of a poll answer.
protectedreadonlyPartial<APIPollMedia> data :
The API data associated with this poll media.
Inherited from: PollMediaBuilder
setEmojiemoji: APIPartialEmoji) : this (
emoji: APIPartialEmoji
Sets the emoji for this poll answer media.
toJSONvalidationOverride?: boolean) : APIPollMedia (
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.