Kick.ChannelUpdate{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KickChannelUpdateEvent",
"type": "object",
"additionalProperties": false,
"properties": {
"channelId": {
"type": [
"null",
"string"
]
},
"channel": {
"type": [
"null",
"string"
]
},
"title": {
"type": [
"null",
"string"
]
},
"categoryId": {
"type": "integer",
"format": "int32"
},
"categoryName": {
"type": [
"null",
"string"
]
},
"categoryThumbnail": {
"type": [
"null",
"string"
]
},
"oldTitle": {
"type": [
"null",
"string"
]
},
"oldCategoryId": {
"type": "integer",
"format": "int32"
},
"oldCategoryName": {
"type": [
"null",
"string"
]
},
"oldCategoryThumbnail": {
"type": [
"null",
"string"
]
},
"is_test": {
"type": "boolean"
}
}
}
{
"categoryId": 34862767,
"categoryName": null,
"categoryThumbnail": "velit deserunt qui",
"channel": "in mollit",
"channelId": "pariatur Lorem",
"is_test": true,
"oldCategoryId": 94359015,
"oldCategoryName": "ullamco",
"oldCategoryThumbnail": "elit minim culpa",
"oldTitle": null,
"title": null
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "Kick.ChannelUpdate" events and register a callback
client.on('Kick.ChannelUpdate', ({ 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);
});