mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-02 13:07:28 +00:00
refactor!: finish parser migration
Finally! :) This removes all code related to the old parser. #65
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
const LiveChatTextMessage = require('./LiveChatTextMessage');
|
||||
const Parser = require('../../..');
|
||||
|
||||
class LiveChatViewerEngagementMessage extends LiveChatTextMessage {
|
||||
type = 'LiveChatViewerEngagementMessage';
|
||||
|
||||
constructor(data) {
|
||||
super(data);
|
||||
|
||||
delete this.author;
|
||||
delete this.menu_endpoint;
|
||||
|
||||
this.icon_type = data.icon.iconType;
|
||||
this.action_button = Parser.parse(data.actionButton);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = LiveChatViewerEngagementMessage;
|
||||
Reference in New Issue
Block a user