From 13bb6a9aa82b76a78983f1e02b7b9909ca4b2bc9 Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 10 Aug 2024 19:28:48 +0000 Subject: [PATCH] Fixed Raid Spam Prevention --- Twitch/Socket/Handlers/ChannelRaidHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Twitch/Socket/Handlers/ChannelRaidHandler.cs b/Twitch/Socket/Handlers/ChannelRaidHandler.cs index c3613fb..acae2eb 100644 --- a/Twitch/Socket/Handlers/ChannelRaidHandler.cs +++ b/Twitch/Socket/Handlers/ChannelRaidHandler.cs @@ -30,7 +30,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers if (!_user.Raids.ContainsKey(message.ToBroadcasterUserId)) { - await _api.GetChatters(_user.TwitchUserId.ToString(), _user.TwitchUserId.ToString()); + chatters = await _api.GetChatters(_user.TwitchUserId.ToString(), _user.TwitchUserId.ToString()); if (chatters?.Data == null) { var extraErrorInfo = _user.TwitchUserId.ToString() != message.ToBroadcasterUserId ? " Ensure you have moderator status in your joined channel(s) to prevent raid spam." : string.Empty;