From c045c502c241bb2f86737163f747eb9b2fed9dd5 Mon Sep 17 00:00:00 2001 From: nuttylmao Date: Sun, 24 Aug 2025 05:15:48 +1000 Subject: [PATCH] Fixed Twitch bans/time outs not working --- horizontal-chat/script.js | 2 +- multichat-overlay/script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/horizontal-chat/script.js b/horizontal-chat/script.js index b542a94..9c0677b 100644 --- a/horizontal-chat/script.js +++ b/horizontal-chat/script.js @@ -766,7 +766,7 @@ function TwitchUserBanned(data) { const messagesToRemove = []; // ID of the message to remove - const userId = data.user_id; + const userId = data.targetUser.id; // Find the items to remove for (let i = 0; i < messageList.children.length; i++) { diff --git a/multichat-overlay/script.js b/multichat-overlay/script.js index 1b8274a..b73567c 100644 --- a/multichat-overlay/script.js +++ b/multichat-overlay/script.js @@ -1126,7 +1126,7 @@ function TwitchUserBanned(data) { const messagesToRemove = []; // ID of the message to remove - const userId = data.user_id; + const userId = data.targetUser.id; // Find the items to remove for (let i = 0; i < messageList.children.length; i++) {