mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-28 09:06:51 +00:00
feat: Add paid chat color info (#164)
This commit is contained in:
@@ -16,6 +16,10 @@ class LiveChatPaidSticker extends YTNode {
|
||||
badges: any;
|
||||
};
|
||||
|
||||
money_chip_background_color: number;
|
||||
money_chip_text_color: number;
|
||||
background_color: number;
|
||||
author_name_text_color: number;
|
||||
sticker: Thumbnail[];
|
||||
purchase_amount: string;
|
||||
context_menu: NavigationEndpoint;
|
||||
@@ -32,6 +36,10 @@ class LiveChatPaidSticker extends YTNode {
|
||||
badges: Parser.parse(data.authorBadges)
|
||||
};
|
||||
|
||||
this.money_chip_background_color = data.moneyChipBackgroundColor;
|
||||
this.money_chip_text_color = data.moneyChipTextColor;
|
||||
this.background_color = data.backgroundColor;
|
||||
this.author_name_text_color = data.authorNameTextColor;
|
||||
this.sticker = Thumbnail.fromResponse(data.sticker);
|
||||
this.purchase_amount = new Text(data.purchaseAmountText).toString();
|
||||
this.context_menu = new NavigationEndpoint(data.contextMenuEndpoint);
|
||||
|
||||
Reference in New Issue
Block a user