@imput/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube. Fork of youtubei.js
17 lines • 661 B
JavaScript
import { YTNode } from '../../../helpers.js';
import { Parser } from '../../../index.js';
import Button from '../../Button.js';
import Text from '../../misc/Text.js';
class LiveChatBannerHeader extends YTNode {
constructor(data) {
super();
this.text = new Text(data.text);
if (Reflect.has(data, 'icon') && Reflect.has(data.icon, 'iconType')) {
this.icon_type = data.icon.iconType;
}
this.context_menu_button = Parser.parseItem(data.contextMenuButton, Button);
}
}
LiveChatBannerHeader.type = 'LiveChatBannerHeader';
export default LiveChatBannerHeader;
//# sourceMappingURL=LiveChatBannerHeader.js.map