Ir al contenido

Twitch.GiftSub

Alguien regala una suscripción a otra persona.

  • Plataforma: twitch
  • Forma: giftSub
  • Evento de origen: Twitch.GiftSub
Widget.on("Twitch.GiftSub", (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.
  • recipient (string): Quién la recibe.
  • tier (1 | 2 | 3): Nivel de la suscripción.
  • anonymous (boolean): Si el regalo es anónimo.
  • giftBombId (string | null): Id de la bomba de la que sale, o null.
  • fromGiftBomb (boolean): Si sale de una bomba: no la cuentes dos veces.

Además trae platform (la plataforma de origen) y raw (el payload original).

El payload de ejemplo que llega al simulador del Estudio:

{
"user": {
"role": 1,
"badges": [],
"color": "#1E90FF",
"subscribed": false,
"monthsSubscribed": 0,
"id": "100000004",
"login": "donregalos",
"name": "DonRegalos",
"type": "twitch"
},
"messageId": "00000000-0000-4000-8000-000000000006",
"systemMessage": "DonRegalos gifted a Tier 1 sub to GatoNegro! They have given 20 Gift Subs in the channel!",
"isTest": false,
"broadcaster": {
"id": "100000000",
"login": "canaldeprueba",
"name": "CanalDePrueba",
"type": "twitch"
},
"isInSharedChat": false,
"isSharedChatHost": false,
"isFromSharedChatGuest": false,
"createdAt": "2026-09-26T05:37:05.2210387Z",
"durationMonths": 1,
"cumlativeTotal": 20,
"recipient": {
"id": "100000009",
"login": "gatonegro",
"name": "GatoNegro",
"type": "twitch"
},
"subTier": "1000",
"communityGiftId": null,
"fromCommunitySubGift": false,
"randomCommunitySubGift": false,
"communitySubGiftCount": 0,
"communitySubGiftCumulativeTotal": 0
}