Skip to content

Gift Class

CreativeBuilds edited this page Jul 14, 2019 · 4 revisions

Gift Class


Can be found from listening to messages.

const Gift = require("dlive-js/src/classes/Gift");
new Gift(dliveMessageObject, streamerBlockchainusername, permissionObj) // Returns a dlive-js GiftObject

Properties - 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

Clone this wiki locally