mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-03 09:35:05 +00:00
feat(parser): Add NotificationAction node
This commit is contained in:
14
src/parser/classes/NotificationAction.ts
Normal file
14
src/parser/classes/NotificationAction.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { type RawNode } from '../index.js';
|
||||
import { YTNode } from '../helpers.js';
|
||||
import { Text } from '../misc.js';
|
||||
|
||||
export default class NotificationAction extends YTNode {
|
||||
static type = 'NotificationAction';
|
||||
|
||||
public response_text: Text;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
this.response_text = new Text(data.responseText);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user