forked from rcxpony/sparkle
14 lines
283 B
C++
14 lines
283 B
C++
#ifndef API_GUILD_HPP_
|
|
#define API_GUILD_HPP_
|
|
#include <includes.hpp>
|
|
#include <net.hpp>
|
|
class Guild {
|
|
private:
|
|
nlohmann::json data;
|
|
public:
|
|
Guild(const nlohmann::json& data) : data(data) {}
|
|
std::string id() const {
|
|
return data["d"]["user"]["id"];
|
|
}
|
|
};
|
|
#endif |