Only listen to new pubsub "moderator added" syntax (#1659)

This commit is contained in:
pajlada
2020-05-03 06:21:00 -04:00
committed by GitHub
parent 7719816891
commit ef9c631c65
3 changed files with 29 additions and 22 deletions
+5
View File
@@ -46,6 +46,11 @@ bool getTargetUser(const rapidjson::Value &data, ActionUser &user)
return rj::getSafe(data, "target_user_id", user.id);
}
bool getTargetUserName(const rapidjson::Value &data, ActionUser &user)
{
return rj::getSafe(data, "target_user_login", user.name);
}
rapidjson::Document createListenMessage(const std::vector<QString> &topicsVec,
std::shared_ptr<TwitchAccount> account)
{