Files
YouTube.js/lib/parser/classes/livechat/items/LiveChatBannerHeader.js
LuanRT 68cb841c00 refactor!: finish parser migration
Finally! :)

This removes all code related to the old parser.

#65
2022-07-11 06:19:10 -03:00

16 lines
376 B
JavaScript

'use strict';
const Parser = require('../../..');
const Text = require('../../Text');
class LiveChatBannerHeader {
type = 'LiveChatBannerHeader';
constructor(data) {
this.text = new Text(data.text).toString();
this.icon_type = data.icon.iconType;
this.context_menu_button = Parser.parse(data.contextMenuButton);
}
}
module.exports = LiveChatBannerHeader;