Fixed Raid Spam Prevention

This commit is contained in:
Tom 2024-08-10 19:28:48 +00:00
parent e83cf5b95e
commit 13bb6a9aa8

View File

@ -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;