2025-01-29 16:06:47 +05:00
|
|
|
#ifndef INTERFACE_GUILD_HPP_
|
|
|
|
#define INTERFACE_GUILD_HPP_
|
2025-02-02 00:11:39 +05:00
|
|
|
#include <pch.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
|