addOption(option: string): Promise<PollWithOptions>
Add a new option to the specified poll.
Parameters:
option (string): The label for the new option.
option
Returns:
A Promise resolving to the updated poll object (PollWithOptions) after adding the new option.
Promise
PollWithOptions
Example:
const newOption = await pollOptions.addOption('New Option'); console.log('New Poll Option:', newOption);
Last updated 2 years ago