Twitch.SharedChatUserBanned{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "TwitchChannelModerateSharedBanEvent",
"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"
}
]
},
"reason": {
"type": [
"null",
"string"
]
}
},
"definitions": {
"TwitchBaseUser": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": [
"null",
"string"
]
},
"login": {
"type": [
"null",
"string"
]
},
"name": {
"type": [
"null",
"string"
]
},
"type": {
"type": [
"null",
"string"
]
}
}
}
}
}
{
"isFromSharedChatGuest": false,
"isInSharedChat": false,
"isSharedChatHost": true,
"isTest": false,
"moderator": {
"id": null,
"login": null,
"name": "velit proident voluptate irure",
"type": "id dolor pariatur qui"
},
"reason": "ut cillum",
"source": {
"id": "sunt Excepteur dolore",
"login": null,
"name": null,
"type": null
},
"targetUser": {
"id": "sed proident ut nisi Excepteur",
"login": null,
"name": "consectetur",
"type": null
}
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "Twitch.SharedChatUserBanned" events and register a callback
client.on('Twitch.SharedChatUserBanned', ({ 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);
});