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