#pragma once #include #include "common/Atomic.hpp" #include "messages/Emote.hpp" namespace chatterino { class BttvEmotes final { static constexpr const char *globalEmoteApiUrl = "https://api.betterttv.net/2/emotes"; public: BttvEmotes(); std::shared_ptr global() const; boost::optional global(const EmoteName &name) const; void loadGlobal(); private: Atomic> global_; }; } // namespace chatterino