class PollAnswerMediaBuilder

export declare class PollAnswerMediaBuilder extends PollMediaBuilder

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

protectedreadonly
data : Partial<APIPollMedia>

The API data associated with this poll media.

Inherited from: PollMediaBuilder

clearEmoji() : this

Clears the emoji for this poll answer media.

setEmoji() : this

Sets the emoji for this poll answer media.

setText(
text: string
) : this

Sets the text for this poll media.

Inherited from: PollMediaBuilder

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.