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

14 lines
279 B
C++
Raw Normal View History

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-20 16:07:42 +05:00
#include <net.h>
2024-12-31 02:20:56 +05:00
class Guild {
private:
2025-01-20 16:07:42 +05:00
nlohmann::json data;
2024-12-31 02:20:56 +05:00
public:
2025-01-20 16:07:42 +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