2024-12-31 02:20:56 +05:00
|
|
|
#ifndef API_GUILD_HPP_
|
|
|
|
#define API_GUILD_HPP_
|
2025-01-15 13:34:41 +05:00
|
|
|
#include <includes.h>
|
|
|
|
//#include <net.h>
|
|
|
|
using std::string, std::cout, std::endl, nlohmann::json;
|
2024-12-31 02:20:56 +05:00
|
|
|
class Guild {
|
|
|
|
private:
|
|
|
|
json data;
|
|
|
|
public:
|
|
|
|
Guild(const json& data) : data(data) {}
|
2025-01-20 04:03:27 +05:00
|
|
|
string id() const {
|
2024-12-31 02:20:56 +05:00
|
|
|
return data["d"]["user"]["id"];
|
|
|
|
}
|
|
|
|
};
|
|
|
|
#endif
|