A builder that creates API-compatible JSON data for a poll question.
Extends
PollMediaBuilderThe API data associated with this poll media.
Inherited from PollMediaBuilderSets the text for this poll media.
Name | Type | Optional | Description |
---|---|---|---|
text | string | No | The text to use |
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.
Name | Type | Optional | Description |
---|---|---|---|
validationOverride | boolean | Yes | Force validation to run/not run regardless of your global preference |