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
Promise
resolving to the updated poll object (PollWithOptions
) after adding the new option.
Example:
Last updated