ChatModerator

Event triggered when a user is promoted to moderator in the monitored stream

const bot = new Dlive(key); bot.on('ChatModerator', msg => { console.log(`${msg.sender.displayname} was promoted to ${msg.roomRole}`) });
LostInTheWastes was promoted to Moderator
{ "__typename": "ChatModerator", "type": "Mod", "id": "b285cc44-1378-4559-b4b5-0cb87d660ae7", "sender": { "__typename": "StreamchatUser", "id": "streamchatuser:dlive-29912156", "username": "dlive-29912156", "displayname": "LostInTheWastes", "avatar": "https://images.prd.dlivecdn.com/avatar/default4.png", "partnerStatus": "NONE", "badges": [] }, "role": "None", "roomRole": "Moderator", "subscribing": false, "add": true }