declare class PollQuestionBuilder extends PollMediaBuilderA builder that creates API-compatible JSON data for a poll question.
external setText(text: string) : this
text: string
Sets the text for this poll media.
Inherited from: PollMediaBuilder
external toJSON(validationOverride?: boolean) : Omit<APIPollMedia, 'emoji'>
validationOverride?: boolean
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.