Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-15 19:50:07 +03:00
1 parent 295542ab9e
commit 24075fbd52
11 files changed
+305 -133

No files matched your search

+1 -21
View File
@@ -229,31 +229,11 @@ namespace Echoion::Api
Api::Result<void> setKv(const std::string& key,
const std::string& value);
// ===== Custom emojis (web UI image emotes) =====
// Admin-managed image emotes referenced by :name: shortcodes in
// watch chat/reactions. `data` is base64-encoded image bytes.
struct CustomEmoji {
std::string name;
std::string mime;
std::string dataBase64;
std::string addedBy;
};
[[nodiscard]] Api::Result<std::vector<CustomEmoji>>
getCustomEmojis();
// Image (mime + base64 data) for one emoji name, or nullopt.
[[nodiscard]] Api::Result<std::optional<CustomEmoji>>
getCustomEmoji(const std::string& name);
Api::Result<void> addCustomEmoji(const std::string& name,
const std::string& mime,
const std::string& dataBase64,
const std::string& addedBy);
Api::Result<void> removeCustomEmoji(const std::string& name);
// ===== Cached avatars (web UI) =====
// TeamSpeak avatar images persisted by uid so the web UI can show
// them even when the client is offline or out of the bot's view
// (the live TS avatar cache only holds in-view clients). `data` is
// base64-encoded image bytes, like custom emojis.
// base64-encoded image bytes.
struct CachedAvatar {
std::string uid;
std::string mime;