This repository has been archived on 2025-03-15. You can view files and clone it, but cannot push or open issues or pull requests.
sparkle/libs/api/Guild.hpp
fluttershy fd16e499b3 fixes
2025-01-20 16:07:42 +05:00

14 lines
279 B
C++

#ifndef API_GUILD_HPP_
#define API_GUILD_HPP_
#include <includes.h>
#include <net.h>
class Guild {
private:
nlohmann::json data;
public:
Guild(const nlohmann::json& data) : data(data) {}
std::string id() const {
return data["d"]["user"]["id"];
}
};
#endif