sparkle/libs/api/Guild.hpp

15 lines
307 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>
//#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) {}
string id() {
return data["d"]["user"]["id"];
}
};
#endif