feat(parser): Add UpdateSubscribeButtonAction

This commit is contained in:
Luan
2024-11-09 20:18:14 -03:00
parent 0a99342ccb
commit fdb754043b
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import type { RawNode } from '../../index.js';
import { YTNode } from '../../helpers.js';
export default class UpdateSubscribeButtonAction extends YTNode {
static type = 'UpdateSubscribeButtonAction';
public channel_id: string;
public subscribed: boolean;
constructor(data: RawNode) {
super();
this.channel_id = data.channelId;
this.subscribed = data.subscribed;
}
}