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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user