class PollMediaBuilder

abstractexternal
declare abstract class PollMediaBuilder

The base poll media builder that contains common symbols for poll media builders.

Constructors

external
constructor()

Creates new poll media.

external
setText(
text: string
) : this

Sets the text for this poll media.

abstractexternal
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.