sparkle/libs/api/Guild.hpp
2025-01-25 13:22:59 +05:00

14 lines
283 B
C++

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