mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 20:41:17 +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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user