@np-dev/youtubei-js
Version:
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).
14 lines • 614 B
JavaScript
import { Parser } from '../../../index.js';
import { LiveChatMessageBase } from './LiveChatTextMessage.js';
class LiveChatViewerEngagementMessage extends LiveChatMessageBase {
constructor(data) {
super(data);
if (Reflect.has(data, 'icon') && Reflect.has(data.icon, 'iconType')) {
this.icon_type = data.icon.iconType;
}
this.action_button = Parser.parseItem(data.actionButton);
}
}
LiveChatViewerEngagementMessage.type = 'LiveChatViewerEngagementMessage';
export default LiveChatViewerEngagementMessage;
//# sourceMappingURL=LiveChatViewerEngagementMessage.js.map