ChatHost
Event triggered upon being hosted
The ChatHost event is triggered when a user hosts the stream you're monitoring.
const bot = new Dlive(key);
bot.on('ChatHost', msg => {
console.log(`${msg.sender.displayname} coming in with that ${msg.viewer} viewer host!`);
});
mandasofdoom coming in with that 2 viewer host!
{
"__typename":"ChatHost",
"type":"Host",
"id":"6e91dd1f-315c-43e4-8cc1-57c8ac4d529c",
"viewer":2,
"sender":{
"__typename":"StreamchatUser",
"id":"streamchatuser:mandasofdoom",
"username":"mandasofdoom",
"displayname":"mandasofdoom",
"avatar":"https://images.prd.dlivecdn.com/avatar/99e2d03f-0bc9-11e9-ba4d-e69a3e25ffc5",
"partnerStatus":"VERIFIED_PARTNER",
"badges":[
]
},
"role":"None",
"roomRole":"Member",
"subscribing":false
}
Updated over 5 years ago