Twitch.Cheer
Alguien manda bits.
- Plataforma: twitch
- Forma:
cheer - Evento de origen:
Twitch.Cheer
Widget.on("Twitch.Cheer", (event) => { // event.user, event.platform…});user(string): Nombre visible; «Anónimo» en un regalo anónimo.userId(string): Id del usuario en su plataforma.userLogin(string): Login, en minúsculas.amount(number): Bits, o el importe en su moneda.currency(string): «bits» en Twitch; el código de moneda (USD, MXN…) en YouTube.message(string): El mensaje, como texto.parts(MessagePart[]): El mensaje en partes (texto, emotes y cheers), para Widget.dom.renderMessage.anonymous(boolean): Si el regalo es anónimo.
Además trae platform (la plataforma de origen) y raw (el payload original).
Ejemplo
Sección titulada «Ejemplo»El payload de ejemplo que llega al simulador del Estudio:
{ "user": { "role": 1, "badges": [], "color": "#9ACD32", "subscribed": false, "monthsSubscribed": 0, "id": "100000003", "login": "eltacoloco", "name": "ElTacoLoco", "type": "twitch" }, "messageId": "00000000-0000-4000-8000-000000000002", "meta": { "internal": false, "firstMessage": false, "firstMessageTimestamp": "2026-09-10T17:12:38.3069493-06:00", "returningChatter": false, "isHighlighted": false, "isMe": false, "isCustomReward": false, "isInSharedChat": false, "isSharedChatHost": false, "isFromSharedChatGuest": false, "createdAt": "2026-09-26T05:33:02.4127730Z", "isTest": false }, "anonymous": false, "text": "Cheer100 ¡vamos!", "emotes": [], "parts": [ { "bits": 100, "color": "#9c3ee8", "imageUrl": "https://d3aqoihi2n8ty8.cloudfront.net/actions/cheer/dark/animated/100/4.gif", "zeroWidth": false, "type": "cheer", "text": "Cheer100" }, { "type": "text", "text": " ¡vamos!" } ], "isReply": false, "reply": null, "sharedChatSource": null, "broadcaster": { "id": "100000000", "login": "canaldeprueba", "name": "CanalDePrueba", "type": "twitch" }, "isInSharedChat": false, "isSharedChatHost": false, "isFromSharedChatGuest": false, "createdAt": "2026-09-26T05:33:02.4127730Z", "isTest": false, "bits": 100, "cheerEmotes": [ { "bits": 100, "color": "#9c3ee8", "type": "CheerEmote", "name": "Cheer", "startIndex": 0, "endIndex": 8, "imageUrl": "https://d3aqoihi2n8ty8.cloudfront.net/actions/cheer/dark/animated/100/4.gif" } ]}