Twitch.SharedChatUserUnbanned{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "TwitchChannelModerateSharedUnbanEvent",
"type": "object",
"additionalProperties": false,
"properties": {
"moderator": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/TwitchBaseUser"
}
]
},
"source": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/TwitchBaseUser"
}
]
},
"isTest": {
"type": "boolean"
},
"isInSharedChat": {
"type": "boolean"
},
"isSharedChatHost": {
"type": "boolean"
},
"isFromSharedChatGuest": {
"type": "boolean"
},
"targetUser": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/TwitchBaseUser"
}
]
}
},
"definitions": {
"TwitchBaseUser": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": [
"null",
"string"
]
},
"login": {
"type": [
"null",
"string"
]
},
"name": {
"type": [
"null",
"string"
]
},
"type": {
"type": [
"null",
"string"
]
}
}
}
}
}
{
"isFromSharedChatGuest": true,
"isInSharedChat": true,
"isSharedChatHost": false,
"isTest": true,
"moderator": null,
"source": {
"id": "aliquip sed",
"login": null,
"name": "sed pariatur deserunt officia",
"type": null
},
"targetUser": {
"id": null,
"login": null,
"name": "ex culpa aliquip in ut",
"type": null
}
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "Twitch.SharedChatUserUnbanned" events and register a callback
client.on('Twitch.SharedChatUserUnbanned', ({ 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);
});