Twitch.UserBanned{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "TwitchChannelModerateBanEvent",
"type": "object",
"additionalProperties": false,
"properties": {
"moderator": {
"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": true,
"moderator": {
"id": "magna in",
"login": null,
"name": null,
"type": null
},
"reason": "sit aliqua cillum",
"targetUser": null
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "Twitch.UserBanned" events and register a callback
client.on('Twitch.UserBanned', ({ 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);
});