Skip to content

Subscription Class

CreativeBuilds edited this page Jul 14, 2019 · 1 revision

Subscription Class


Can be found from listening to messages.

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

Properties - Extends Message

name returns description
month number Month variable sent from dlive itself, pretty sure this is the amount of months that the user has subbed previously (not 100% sure)
timestamp number Date in MS

Clone this wiki locally