mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-30 09:55:18 +00:00
feat: add LiveChatRestrictedParticipation node (#267)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { YTNode } from '../../../helpers';
|
||||
import Text from '../../misc/Text';
|
||||
|
||||
class LiveChatRestrictedParticipation extends YTNode {
|
||||
message: Text;
|
||||
icon_type?: string;
|
||||
|
||||
constructor(data: any) {
|
||||
super();
|
||||
this.message = new Text(data.message);
|
||||
this.icon_type = data?.icon?.iconType;
|
||||
// TODO: parse onClickCommand
|
||||
}
|
||||
}
|
||||
|
||||
export default LiveChatRestrictedParticipation;
|
||||
@@ -113,6 +113,7 @@ import { default as LiveChatPaidMessage } from './classes/livechat/items/LiveCha
|
||||
import { default as LiveChatPaidSticker } from './classes/livechat/items/LiveChatPaidSticker';
|
||||
import { default as LiveChatPlaceholderItem } from './classes/livechat/items/LiveChatPlaceholderItem';
|
||||
import { default as LiveChatProductItem } from './classes/livechat/items/LiveChatProductItem';
|
||||
import { default as LiveChatRestrictedParticipation } from './classes/livechat/items/LiveChatRestrictedParticipation';
|
||||
import { default as LiveChatTextMessage } from './classes/livechat/items/LiveChatTextMessage';
|
||||
import { default as LiveChatTickerPaidMessageItem } from './classes/livechat/items/LiveChatTickerPaidMessageItem';
|
||||
import { default as LiveChatTickerPaidStickerItem } from './classes/livechat/items/LiveChatTickerPaidStickerItem';
|
||||
@@ -411,6 +412,7 @@ export const YTNodes = {
|
||||
LiveChatPaidSticker,
|
||||
LiveChatPlaceholderItem,
|
||||
LiveChatProductItem,
|
||||
LiveChatRestrictedParticipation,
|
||||
LiveChatTextMessage,
|
||||
LiveChatTickerPaidMessageItem,
|
||||
LiveChatTickerPaidStickerItem,
|
||||
|
||||
Reference in New Issue
Block a user