forked from rcxpony/sparkle
20 lines
370 B
C++
20 lines
370 B
C++
#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 |