Fixed raid spam prevention for joined channels.
This commit is contained in:
parent
9fd43502f5
commit
dadbe13352
@ -30,7 +30,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
|
||||
|
||||
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)
|
||||
{
|
||||
var extraErrorInfo = _user.TwitchUserId.ToString() != message.ToBroadcasterUserId ? " Ensure you have moderator status in your joined channel(s) to prevent raid spam." : string.Empty;
|
||||
|
Loading…
Reference in New Issue
Block a user