mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-15 18:42:11 +00:00
17 lines
516 B
TypeScript
17 lines
516 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { Parser, type RawNode } from '../index.js';
|
|
import Button from './Button.js';
|
|
import Text from './misc/Text.js';
|
|
|
|
export default class LiveChatDialog extends YTNode {
|
|
static type = 'LiveChatDialog';
|
|
|
|
confirm_button: Button | null;
|
|
dialog_messages: Text[];
|
|
|
|
constructor (data: RawNode) {
|
|
super();
|
|
this.confirm_button = Parser.parseItem(data.confirmButton, Button);
|
|
this.dialog_messages = data.dialogMessages.map((el: RawNode) => new Text(el));
|
|
}
|
|
} |