add role list to user menu

This commit is contained in:
ouwou
2021-01-16 23:48:19 -05:00
parent 462f801af2
commit 3a25249a0d
4 changed files with 48 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
#include "snowflake.hpp"
#include "json.hpp"
#include "user.hpp"
#include "role.hpp"
#include <string>
#include <vector>
@@ -14,6 +15,8 @@ struct GuildMember {
bool IsDeafened;
bool IsMuted;
std::vector<RoleData> GetSortedRoles() const;
friend void from_json(const nlohmann::json &j, GuildMember &m);
static GuildMember from_update_json(const nlohmann::json &j);
};