-
Notifications
You must be signed in to change notification settings - Fork 3
Gift Class
CreativeBuilds edited this page Jul 14, 2019
·
4 revisions
Can be found from listening to messages.
const Gift = require("dlive-js/src/classes/Gift");
new Gift(dliveMessageObject, streamerBlockchainusername, permissionObj) // Returns a dlive-js GiftObjectProperties - Extends Message
| name | returns | description |
|---|---|---|
| gift | string | type of gift that was sent, can be LEMON, ICE_CREAM, DIAMOND, NINJAGHINI, NINJET |
| donationMessage | string | Either the message a user includes with diamonds+ or an empty string |
| amount | number | amount of gifts sent ex: 1 lemon was sent, amount is 1, gift is lemon |
| inLino | number | the actual amount of lino that was donated |
| profit | number | the amount of lino the streamer gained after the %9.01 |