sparkle/libs/api/Guild.hpp

20 lines
370 B
C++
Raw Normal View History

2024-12-31 02:20:56 +05:00
#ifndef API_GUILD_HPP_
#define API_GUILD_HPP_
#include <json.hpp>
#include <string>
#include <exception>
#include <iostream>
using std::string;
using std::cout;
using std::endl;
using json = nlohmann::json;
class Guild {
private:
json data;
public:
Guild(const json& data) : data(data) {}
string id() {
return data["d"]["user"]["id"];
}
};
#endif