mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +00:00
feat(parser): Add UpdateSubscribeButtonAction
This commit is contained in:
15
src/parser/classes/actions/UpdateSubscribeButtonAction.ts
Normal file
15
src/parser/classes/actions/UpdateSubscribeButtonAction.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user