class PollMediaBuilder

abstract
export declare abstract class PollMediaBuilder

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

Constructors

constructor()

Creates new poll media.

setText(
text: string
) : this

Sets the text for this poll media.

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