Twitch.RewardRedemptionUpdated
WebSocket event schema, payload, and examples
Properties
The properties defined in the event schema, with descriptions.
broadcaster
object required
id
string
login
string
name
string
type
string required
createdAt
string required
isFromSharedChatGuest
boolean required
isInSharedChat
boolean required
isSharedChatHost
boolean required
isTest
boolean required
redemptionId
string
reward
object required
cost
integer required
globalCooldown
integer required
group
string
id
string
isOurs
boolean required
maxPerStream
integer required
maxPerUserPerStream
integer required
persistCounter
boolean required
persistUserCounter
boolean required
prompt
string
requiresUserInput
boolean required
skipsQueue
boolean required
title
string
status
string
user
object required
id
string
login
string
name
string
type
string required
userInput
string
Schema
The JSON Schema for the event payload, if available.
schema.json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "TwitchRewardRedemptionUpdatedEvent",
"type": "object",
"additionalProperties": false,
"properties": {
"redemptionId": {
"type": [
"null",
"string"
]
},
"user": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/TwitchBaseUser"
}
]
},
"status": {
"type": [
"null",
"string"
]
},
"userInput": {
"type": [
"null",
"string"
]
},
"reward": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/TwitchRewardData"
}
]
},
"broadcaster": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/TwitchBaseUser"
}
]
},
"isInSharedChat": {
"type": "boolean"
},
"isSharedChatHost": {
"type": "boolean"
},
"isFromSharedChatGuest": {
"type": "boolean"
},
"createdAt": {
"type": "string"
},
"isTest": {
"type": "boolean"
}
},
"$defs": {
"TwitchBaseUser": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": [
"null",
"string"
]
},
"login": {
"type": [
"null",
"string"
]
},
"name": {
"type": [
"null",
"string"
]
},
"type": {
"type": "string"
}
}
},
"TwitchRewardData": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": [
"null",
"string"
]
},
"title": {
"type": [
"null",
"string"
]
},
"cost": {
"type": "integer"
},
"prompt": {
"type": [
"null",
"string"
]
},
"skipsQueue": {
"type": "boolean"
},
"requiresUserInput": {
"type": "boolean"
},
"maxPerStream": {
"type": "integer"
},
"maxPerUserPerStream": {
"type": "integer"
},
"globalCooldown": {
"type": "integer"
},
"isOurs": {
"type": "boolean"
},
"group": {
"type": [
"null",
"string"
]
},
"persistCounter": {
"type": "boolean"
},
"persistUserCounter": {
"type": "boolean"
}
}
}
}
}
JSON Payload
An example JSON payload for the event, automatically generated using JSONSchemaFaker
example.json
{
"redemptionId": "",
"user": null,
"status": null,
"userInput": null,
"reward": null,
"broadcaster": {},
"isInSharedChat": true,
"isSharedChatHost": false,
"isFromSharedChatGuest": true,
"createdAt": "7L5BqMF",
"isTest": true
}
Client Example
Example code showing how to subscribe to this event using the Streamer.bot WebSocket Client
index.js
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "Twitch.RewardRedemptionUpdated" events and register a callback
client.on('Twitch.RewardRedemptionUpdated', ({ event, data }) => {
// Code here will run every time the event is received!
console.log('Received event:', event.source, event.type);
console.log('Event data:', data);
});
 Â