feat: Add Live Emote Updates for BTTV (#4147)

This feature is enabled by default and can be disabled in settings with the "Enable BTTV live emotes updates" setting.

Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix
2023-01-21 15:06:55 +01:00
committed by GitHub
parent 56f7c91a64
commit 904749cf62
22 changed files with 856 additions and 33 deletions
+11
View File
@@ -47,6 +47,8 @@ class EmoteMap;
class TwitchBadges;
class FfzEmotes;
class BttvEmotes;
struct BttvLiveUpdateEmoteUpdateAddMessage;
struct BttvLiveUpdateEmoteRemoveMessage;
class SeventvEmotes;
struct SeventvEventAPIEmoteAddDispatch;
struct SeventvEventAPIEmoteUpdateDispatch;
@@ -139,6 +141,13 @@ public:
const QString &seventvUserID() const;
const QString &seventvEmoteSetID() const;
/** Adds a BTTV channel emote to this channel. */
void addBttvEmote(const BttvLiveUpdateEmoteUpdateAddMessage &message);
/** Updates a BTTV channel emote in this channel. */
void updateBttvEmote(const BttvLiveUpdateEmoteUpdateAddMessage &message);
/** Removes a BTTV channel emote from this channel. */
void removeBttvEmote(const BttvLiveUpdateEmoteRemoveMessage &message);
/** Adds a 7TV channel emote to this channel. */
void addSeventvEmote(const SeventvEventAPIEmoteAddDispatch &dispatch);
/** Updates a 7TV channel emote's name in this channel */
@@ -206,6 +215,8 @@ private:
void fetchDisplayName();
void cleanUpReplyThreads();
void showLoginMessage();
/** Joins (subscribes to) a Twitch channel for updates on BTTV. */
void joinBttvChannel() const;
void setLive(bool newLiveStatus);
void setMod(bool value);