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

19 lines
356 B
C++
Raw Normal View History

2024-12-31 02:20:56 +05:00
#ifndef API_GUILD_HPP_
#define API_GUILD_HPP_
2025-01-06 21:57:27 +05:00
#include <utils/types.hpp>
2024-12-31 02:20:56 +05:00
#include <string>
#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