Files
YouTube.js/src/parser/classes/LiveChatItemList.ts
LuanRT 8e37efa575 refactor: improve livechat parser & add remaining action nodes (#285)
* refactor: improve live chat parsers & add missing nodes

* chore: update example and docs

* docs: rephrasing/formatting

* chore: remove unneeded test (unrelated)
2023-01-10 01:44:51 -03:00

18 lines
489 B
TypeScript

import Parser from '../index';
import { YTNode } from '../helpers';
import type Button from './Button';
class LiveChatItemList extends YTNode {
static type = 'LiveChatItemList';
max_items_to_display: string;
more_comments_below_button: Button | null;
constructor(data: any) {
super();
this.max_items_to_display = data.maxItemsToDisplay;
this.more_comments_below_button = Parser.parseItem<Button>(data.moreCommentsBelowButton);
}
}
export default LiveChatItemList;