Ir al contenido

Youtube.SuperChat

Alguien manda un Super Chat.

  • Plataforma: youtube
  • Forma: cheer
  • Evento de origen: Youtube.SuperChat
Widget.on("Youtube.SuperChat", (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).

El payload de ejemplo que llega al simulador del Estudio:

{
"amount": "string",
"broadcast": [],
"currencyCode": "currencyCode",
"eventId": "00000000-0000-4000-8000-000000000001",
"isTest": false,
"message": "string",
"parts": [
{
"type": "text",
"text": "¡Hola desde el simulador!"
}
],
"user": {
"id": "string",
"isOwner": false,
"isSponsor": true,
"isVerified": true,
"name": "CanalDePrueba",
"profileImageUrl": "https://yt3.ggpht.com/s0C1fULyWjrKHdHHQ_H8VcloFQWL955jB-G917g-ExxqqfFqdziHk9vPbbI1B1gllU2RNQNA=s88-c-k-c0x00ffffff-no-rj"
},
"publishedAt": "2026-09-26T05:32:11.8891229Z"
}