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>
|
2025-01-25 11:24:56 +05:00
|
|
|
#include <net.h>
|
2024-12-31 02:20:56 +05:00
|
|
|
class Guild {
|
|
|
|
private:
|
2025-01-25 11:24:56 +05:00
|
|
|
nlohmann::json data;
|
2024-12-31 02:20:56 +05:00
|
|
|
public:
|
2025-01-25 11:24:56 +05:00
|
|
|
Guild(const nlohmann::json& data) : data(data) {}
|
|
|
|
std::string id() const {
|
2024-12-31 02:20:56 +05:00
|
|
|
return data["d"]["user"]["id"];
|
|
|
|
}
|
|
|
|
};
|
|
|
|
#endif
|