summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoderndevslulw <moderndevslulw@alright.party>2025-04-04 16:04:54 +0500
committermoderndevslulw <moderndevslulw@alright.party>2025-04-04 16:04:54 +0500
commite67424780c981a8b032fc9f1e7ec7f09cd2ffd88 (patch)
tree956bb19a8eb350262c56a9a3be48f925e877f4d3
parenta44fc682a5f2eb54dfac6705ff21d0778639af6a (diff)
feat: a method for getting 7tv joined ids
-rw-r--r--include/emotespp/seventv.hpp2
-rw-r--r--src/seventv.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/include/emotespp/seventv.hpp b/include/emotespp/seventv.hpp
index 77db912..650d864 100644
--- a/include/emotespp/seventv.hpp
+++ b/include/emotespp/seventv.hpp
@@ -20,6 +20,8 @@ namespace emotespp {
void start();
+ const std::vector<std::string> &get_ids() const;
+
private:
Emote create_emote(const nlohmann::json &data);
diff --git a/src/seventv.cpp b/src/seventv.cpp
index 62ea550..54e259f 100644
--- a/src/seventv.cpp
+++ b/src/seventv.cpp
@@ -152,6 +152,10 @@ namespace emotespp {
void SevenTVWebsocketClient::start() { this->websocket.start(); }
+ const std::vector<std::string> &SevenTVWebsocketClient::get_ids() const {
+ return this->ids;
+ }
+
Emote SevenTVWebsocketClient::create_emote(const nlohmann::json &data) {
std::string id = data["id"];
std::string code = data["name"];