feat(eventsub): implement suspicious user message (#6007)

This commit is contained in:
nerix
2025-03-01 13:48:01 +01:00
committed by GitHub
parent c5d4a3a69b
commit bced3c658d
22 changed files with 872 additions and 62 deletions
+17
View File
@@ -1522,10 +1522,27 @@ void TwitchChannel::refreshPubSub()
},
},
});
this->eventSubSuspiciousUserMessageHandle =
getApp()->getEventSub()->subscribe(eventsub::SubscriptionRequest{
.subscriptionType = "channel.suspicious_user.message",
.subscriptionVersion = "1",
.conditions =
{
{
"broadcaster_user_id",
roomId,
},
{
"moderator_user_id",
currentAccount->getUserId(),
},
},
});
}
else
{
this->eventSubChannelModerateHandle.reset();
this->eventSubSuspiciousUserMessageHandle.reset();
}
getApp()->getTwitchPubSub()->listenToChannelPointRewards(roomId);
}