diff --git a/lib/parser/contents/classes/livechat/items/LiveChatPaidSticker.js b/lib/parser/contents/classes/livechat/items/LiveChatPaidSticker.js index 0e781c4f..606e7338 100644 --- a/lib/parser/contents/classes/livechat/items/LiveChatPaidSticker.js +++ b/lib/parser/contents/classes/livechat/items/LiveChatPaidSticker.js @@ -6,23 +6,23 @@ const Thumbnail = require('../../Thumbnail'); const Text = require('../../Text'); class LiveChatPaidSticker { - type = 'LiveChatPaidSticker'; + type = 'LiveChatPaidSticker'; - constructor(data) { - this.id = data.id; + constructor(data) { + this.id = data.id; - this.author = { + this.author = { id: data.authorExternalChannelId, name: new Text(data.authorName), thumbnails: Thumbnail.fromResponse(data.authorPhoto), badges: Parser.parse(data.authorBadges) }; - this.sticker = Thumbnail.fromResponse(data.sticker); - this.purchase_amount = new Text(data.purchaseAmountText).toString(); - this.context_menu = new NavigationEndpoint(data.contextMenuEndpoint); - this.timestamp = Math.floor(parseInt(data.timestampUsec) / 1000); - } + this.sticker = Thumbnail.fromResponse(data.sticker); + this.purchase_amount = new Text(data.purchaseAmountText).toString(); + this.context_menu = new NavigationEndpoint(data.contextMenuEndpoint); + this.timestamp = Math.floor(parseInt(data.timestampUsec) / 1000); + } } -module.exports = LiveChatPaidSticker; +module.exports = LiveChatPaidSticker; \ No newline at end of file