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/interface/Guild.hpp

14 lines
299 B
C++
Raw Normal View History

2025-01-29 16:06:47 +05:00
#ifndef INTERFACE_GUILD_HPP_
#define INTERFACE_GUILD_HPP_
2025-01-25 13:22:59 +05:00
#include <includes.hpp>
2025-01-29 16:06:47 +05:00
#include <network.hpp>
2024-12-31 02:20:56 +05:00
class Guild {
private:
2025-01-25 11:24:56 +05:00
nlohmann::json data;
2024-12-31 02:20:56 +05:00
public:
2025-01-25 11:24:56 +05:00
Guild(const nlohmann::json& data) : data(data) {}
std::string id() const {
2024-12-31 02:20:56 +05:00
return data["d"]["user"]["id"];
}
};
#endif