Fixed raid spam prevention for joined channels.

This commit is contained in:
Tom 2024-08-14 20:35:35 +00:00
parent 9fd43502f5
commit dadbe13352

View File

@ -30,7 +30,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
if (!_user.Raids.ContainsKey(message.ToBroadcasterUserId)) if (!_user.Raids.ContainsKey(message.ToBroadcasterUserId))
{ {
chatters = await _api.GetChatters(_user.TwitchUserId.ToString(), _user.TwitchUserId.ToString()); chatters = await _api.GetChatters(message.ToBroadcasterUserId.ToString(), _user.TwitchUserId.ToString());
if (chatters?.Data == null) 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; var extraErrorInfo = _user.TwitchUserId.ToString() != message.ToBroadcasterUserId ? " Ensure you have moderator status in your joined channel(s) to prevent raid spam." : string.Empty;