1
0
forked from rcxpony/sparkle
2025-01-25 11:24:56 +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