A builder that creates API-compatible JSON data for the media of a poll answer.
Extends
PollMediaBuilderThe API data associated with this poll media.
Inherited from PollMediaBuilderClears the emoji for this poll answer media.
Sets the emoji for this poll answer media.
Name | Type | Optional | Description |
---|---|---|---|
emoji | APIPartialEmoji | No | The emoji 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 |