summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"];