PollAnswerMediaBuilder

export declare class PollAnswerMediaBuilder extends PollMediaBuilder
export declare class PollAnswerMediaBuilder extends PollMediaBuilder
A builder that creates API-compatible JSON data for the media of a poll answer.
ProtectedReadonly
The API data associated with this poll media.
Inherited from PollMediaBuilder
clearEmoji():this
Clears the emoji for this poll answer media.
setEmoji(emoji):this
Sets the emoji for this poll answer media.
NameTypeOptionalDescription
emojiAPIPartialEmojiNoThe emoji to use
setText(text):this
Sets the text for this poll media.
NameTypeOptionalDescription
textstringNoThe text to use
Inherited from PollMediaBuilder
toJSON(validationOverride?):APIPollMedia
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.
NameTypeOptionalDescription
validationOverridebooleanYesForce validation to run/not run regardless of your global preference