No summary provided.
Creates a new poll answer from API data.
Name | Type | Optional | Description |
---|---|---|---|
data | Partial<Omit<APIPollAnswer, 'answer_id'>> | Yes | The API data to create this poll answer with |
Sets the media for this poll answer.
Name | Type | Optional | Description |
---|---|---|---|
options | APIPollMedia | PollAnswerMediaBuilder | ((builder: PollAnswerMediaBuilder) => PollAnswerMediaBuilder) | No | The data to use for this poll answer's media |
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 |
Updates the media of this poll answer.
Name | Type | Optional | Description |
---|---|---|---|
updater | (builder: PollAnswerMediaBuilder) => void | No | The function to update the media with |