feat(parser): Add ReplaceLiveChatAction (#847)

This commit is contained in:
jonz94
2024-12-15 12:09:18 +08:00
committed by GitHub
parent 73362c68fb
commit 342fdd1db3
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { YTNode } from '../../helpers.js';
import { Parser, type RawNode } from '../../index.js';
export default class ReplaceLiveChatAction extends YTNode {
static type = 'ReplaceLiveChatAction';
to_replace: string;
replacement: YTNode | null;
constructor(data: RawNode) {
super();
this.to_replace = data.toReplace;
this.replacement = Parser.parseItem(data.replacement);
}
}