class PollMediaBuilder

abstractexternal
declare abstract class PollMediaBuilder

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

Constructors

constructor()

Creates new poll media from API data.

protectedreadonlyexternal
data : Partial<APIPollMedia>

The API data associated with this 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.