Files
abaddon/discord/member.hpp
2020-10-13 02:05:59 -04:00

20 lines
552 B
C++

#pragma once
#include "snowflake.hpp"
#include "json.hpp"
#include "user.hpp"
#include <string>
#include <vector>
struct GuildMember {
User User; // opt
std::string Nickname; // null
std::vector<Snowflake> Roles; //
std::string JoinedAt; //
std::string PremiumSince; // opt, null
bool IsDeafened; //
bool IsMuted; //
friend void from_json(const nlohmann::json &j, GuildMember &m);
static GuildMember from_update_json(const nlohmann::json &j);
};