Fixed Raid Spam Prevention
This commit is contained in:
parent
e83cf5b95e
commit
13bb6a9aa8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user