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;
}
}

View File

@@ -12,6 +12,7 @@ export { default as AppendContinuationItemsAction } from './classes/actions/Appe
export { default as GetMultiPageMenuAction } from './classes/actions/GetMultiPageMenuAction.js';
export { default as OpenPopupAction } from './classes/actions/OpenPopupAction.js';
export { default as UpdateEngagementPanelAction } from './classes/actions/UpdateEngagementPanelAction.js';
export { default as UpdateSubscribeButtonAction } from './classes/actions/UpdateSubscribeButtonAction.js';
export { default as Alert } from './classes/Alert.js';
export { default as AlertWithButton } from './classes/AlertWithButton.js';
export { default as AnalyticsMainAppKeyMetrics } from './classes/analytics/AnalyticsMainAppKeyMetrics.js';