Indicates whether donors are allowed to add custom options to the poll.
true
if custom options are allowed, otherwise false
.
The unique identifier of the poll.
Indicates whether the poll is currently active.
true
if the poll is active, otherwise false
.
The list of available options for the poll.
Each option is represented as an instance of DonationAlertsPollOption.
The title of the poll.
The type of the poll, determining how the winner is calculated.
Serializes the instance into a plain JavaScript object.
This method is automatically invoked when the instance is passed to JSON.stringify()
.
In Node.js, it's also used when the instance is logged via console.log()
(via the util.inspect
mechanism).
Represents an updated poll object from Donation Alerts.
Remarks
This class provides access to key properties of a poll, including its options and configuration details. It also indicates whether the poll is active or not.