Fix emotesets not loading properly (#2905)

* Initial work

fk I'm so tired...

* Updated Twitch API documentation

* Futher changes

* Removed debug output

* Added changelog entry

* Advice: don't code at 4am

removed all silly debug stuff

* Add missing lambda capture
This commit is contained in:
Paweł
2021-06-24 23:23:31 +02:00
committed by GitHub
parent ed6ef0b98e
commit 002129009d
7 changed files with 96 additions and 32 deletions
+16
View File
@@ -264,6 +264,17 @@ struct HelixCheermoteSet {
}
};
struct HelixEmoteSetData {
QString setId;
QString ownerId;
explicit HelixEmoteSetData(QJsonObject jsonObject)
: setId(jsonObject.value("emote_set_id").toString())
, ownerId(jsonObject.value("owner_id").toString())
{
}
};
enum class HelixClipError {
Unknown,
ClipsDisabled,
@@ -398,6 +409,11 @@ public:
ResultCallback<std::vector<HelixCheermoteSet>> successCallback,
HelixFailureCallback failureCallback);
// https://dev.twitch.tv/docs/api/reference#get-emote-sets
void getEmoteSetData(QString emoteSetId,
ResultCallback<HelixEmoteSetData> successCallback,
HelixFailureCallback failureCallback);
void update(QString clientId, QString oauthToken);
static void initialize();