The donated amount.
The date and time when the donation was received.
A Date
object representing the donation creation time.
The currency of the donated amount.
The unique identifier for the donation alert.
Indicates whether the alert was shown in the streamer's widget.
true
if the donation alert has been displayed; otherwise, false
.
The message sent by the donor along with the donation.
The type of the message accompanying the donation.
The date and time when the alert was shown on the streamer's widget.
A Date
object if the alert was shown; null
otherwise.
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 a donation received through Donation Alerts.
Remarks
This class provides detailed information about a donation, including user details, donation amount, message, currency, and timestamps for creation and display.