From 51cf8fd2df3cf7a602d05540627a5ad8af6baa58 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 9 Sep 2020 23:17:26 -0400 Subject: rename and reorder a bunch of discord stuff --- discord/member.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 discord/member.hpp (limited to 'discord/member.hpp') diff --git a/discord/member.hpp b/discord/member.hpp new file mode 100644 index 0000000..4ff84fc --- /dev/null +++ b/discord/member.hpp @@ -0,0 +1,18 @@ +#pragma once +#include "snowflake.hpp" +#include "json.hpp" +#include "user.hpp" +#include +#include + +struct GuildMember { + User User; // opt + std::string Nickname; // null + std::vector Roles; // + std::string JoinedAt; // + std::string PremiumSince; // opt, null + bool IsDeafened; // + bool IsMuted; // + + friend void from_json(const nlohmann::json &j, GuildMember &m); +}; -- cgit v1.2.3