Skip to content

feat(parser): Add LiveChatSponsorshipsGiftRedemptionAnnouncement node#795

Merged
LuanRT merged 1 commit intoLuanRT:mainfrom
jonz94:add-LiveChatSponsorshipsGiftRedemptionAnnouncement
Nov 9, 2024
Merged

feat(parser): Add LiveChatSponsorshipsGiftRedemptionAnnouncement node#795
LuanRT merged 1 commit intoLuanRT:mainfrom
jonz94:add-LiveChatSponsorshipsGiftRedemptionAnnouncement

Conversation

@jonz94
Copy link
Contributor

@jonz94 jonz94 commented Nov 2, 2024

Add a new parser for the live chat node that appears when someone receives a gifted membership.

Example RawNode data:

{
  "liveChatSponsorshipsGiftRedemptionAnnouncementRenderer": {
    "id": "ChwKGkNMcXYzWlhtbFlrREZiSXUxZ0FkeFVjVHF3",
    "timestampUsec": "1729181259381482",
    "timestampText": {
      "simpleText": "2:04:31"
    },
    "authorExternalChannelId": "UCEEweFt_lPNNTiwSU3Z--jg",
    "authorName": {
      "simpleText": "Atama Hikari 光頭 Ch."
    },
    "authorPhoto": {
      "thumbnails": [
        {
          "url": "https://yt4.ggpht.com/KdYuzSiJbBJZv_bmz-TdabkHbactoCrNXnuC7OuBmxsG3jYMZMZZNTRsBimVZB84TDWK4pXLYg=s32-c-k-c0x00ffffff-no-rj",
          "width": 32,
          "height": 32
        },
        {
          "url": "https://yt4.ggpht.com/KdYuzSiJbBJZv_bmz-TdabkHbactoCrNXnuC7OuBmxsG3jYMZMZZNTRsBimVZB84TDWK4pXLYg=s64-c-k-c0x00ffffff-no-rj",
          "width": 64,
          "height": 64
        }
      ]
    },
    "message": {
      "runs": [
        {
          "text": "was gifted a membership by ",
          "italics": true
        },
        {
          "text": "幽浮 UFo K.",
          "bold": true,
          "italics": true
        }
      ]
    },
    "authorBadges": [
      {
        "liveChatAuthorBadgeRenderer": {
          "icon": {
            "iconType": "MODERATOR"
          },
          "tooltip": "Moderator",
          "accessibility": {
            "accessibilityData": {
              "label": "Moderator"
            }
          }
        }
      }
    ],
    "contextMenuEndpoint": {
      "clickTrackingParams": "CAcQ2sMKIhMI5tKTnNG7iQMVSL1WAR2mYxlH",
      "commandMetadata": {
        "webCommandMetadata": {
          "ignoreNavigation": true
        }
      },
      "liveChatItemContextMenuEndpoint": {
        "params": "Q2g0S0hBb2FRMHh4ZGpOYVdHMXNXV3RFUm1KSmRURm5RV1I0VldOVWNYY2FLU29uQ2hoVlF6SmFWMmRuYjI0eFRrOVVNbFJIWVZaVlRYcFpOMEVTQzBoRU9TMTFWRTgxZW05bklBRW9CRElhQ2hoVlEwVkZkMlZHZEY5c1VFNU9WR2wzVTFVeldpMHRhbWM0QWtnQlVDTSUzRA=="
      }
    },
    "contextMenuAccessibility": {
      "accessibilityData": {
        "label": "Chat actions"
      }
    },
    "trackingParams": "CAcQ2sMKIhMI5tKTnNG7iQMVSL1WAR2mYxlH"
  }
}

@jonz94 jonz94 force-pushed the add-LiveChatSponsorshipsGiftRedemptionAnnouncement branch from 26f9ef9 to f4e4009 Compare November 2, 2024 16:21
@LuanRT LuanRT merged commit 20f7971 into LuanRT:main Nov 9, 2024
@jonz94 jonz94 deleted the add-LiveChatSponsorshipsGiftRedemptionAnnouncement branch November 9, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants