class PollAnswerMediaBuilder

external
declare class PollAnswerMediaBuilder extends PollMediaBuilder

A builder that creates API-compatible JSON data for the media of a poll answer.

protectedreadonlyexternal
data : Partial<APIPollMedia>

The API data associated with this poll media.

Inherited from: PollMediaBuilder

external
clearEmoji() : this

Clears the emoji for this poll answer media.

external
setEmoji() : this

Sets the emoji for this poll answer media.

external
setText(
text: string
) : this

Sets the text for this poll media.

Inherited from: PollMediaBuilder

external
toJSON(
validationOverride?: boolean
) : 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.