mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-22 05:58:14 +00:00
* tests: improve coverage * refactor: clean up nodes * chore: lint * feat(parser): ignore `BrandVideoShelf` Seems to be used for ads. * feat(parser): ignore `BrandVideoSingleton` too
16 lines
447 B
TypeScript
16 lines
447 B
TypeScript
import Parser from '../../index.js';
|
|
import { YTNode } from '../../helpers.js';
|
|
import type { RawNode } from '../../index.js';
|
|
|
|
export default class ReplaceChatItemAction extends YTNode {
|
|
static type = 'ReplaceChatItemAction';
|
|
|
|
target_item_id: string;
|
|
replacement_item: YTNode;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.target_item_id = data.targetItemId;
|
|
this.replacement_item = Parser.parseItem(data.replacementItem);
|
|
}
|
|
} |