refactor: load Twitch emotes from Helix (#5239)

This commit is contained in:
nerix
2024-09-01 11:22:54 +02:00
committed by GitHub
parent 03b0e4881f
commit 820aa12af6
40 changed files with 1251 additions and 528 deletions
@@ -2,6 +2,7 @@
#include "common/ChatterinoSetting.hpp"
#include "common/SignalVector.hpp"
#include "util/Expected.hpp"
#include "util/QStringHash.hpp"
#include "util/RapidJsonSerializeQString.hpp"
@@ -58,6 +59,10 @@ public:
SignalVector<std::shared_ptr<TwitchAccount>> accounts;
/// The signal is invoked with (caller, error) where caller is the argument
/// passed to reloadEmotes() and error.
pajlada::Signals::Signal<void *, ExpectedStr<void>> emotesReloaded;
private:
enum class AddUserResponse {
UserAlreadyExists,