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++) {