mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Fixed Twitch bans/time outs not working
This commit is contained in:
@@ -766,7 +766,7 @@ function TwitchUserBanned(data) {
|
|||||||
const messagesToRemove = [];
|
const messagesToRemove = [];
|
||||||
|
|
||||||
// ID of the message to remove
|
// ID of the message to remove
|
||||||
const userId = data.user_id;
|
const userId = data.targetUser.id;
|
||||||
|
|
||||||
// Find the items to remove
|
// Find the items to remove
|
||||||
for (let i = 0; i < messageList.children.length; i++) {
|
for (let i = 0; i < messageList.children.length; i++) {
|
||||||
|
|||||||
@@ -1126,7 +1126,7 @@ function TwitchUserBanned(data) {
|
|||||||
const messagesToRemove = [];
|
const messagesToRemove = [];
|
||||||
|
|
||||||
// ID of the message to remove
|
// ID of the message to remove
|
||||||
const userId = data.user_id;
|
const userId = data.targetUser.id;
|
||||||
|
|
||||||
// Find the items to remove
|
// Find the items to remove
|
||||||
for (let i = 0; i < messageList.children.length; i++) {
|
for (let i = 0; i < messageList.children.length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user