Abstract
The base poll media builder that contains common symbols for poll media builders.
Creates new poll media from API data.
| Name | Type | Optional | Description |
|---|---|---|---|
| data | Partial<APIPollMedia> | Yes | The API data to use |
Sets 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 |