basic support of per-guild avatars

This commit is contained in:
ouwou
2021-06-03 03:59:25 -04:00
parent fe9642f1f1
commit 14d0968c92
7 changed files with 37 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ void from_json(const nlohmann::json &j, GuildMember &m) {
JS_D("deaf", m.IsDeafened);
JS_D("mute", m.IsMuted);
JS_O("user_id", m.UserID);
JS_ON("avatar", m.Avatar);
}
std::vector<RoleData> GuildMember::GetSortedRoles() const {
@@ -33,4 +34,5 @@ void GuildMember::update_from_json(const nlohmann::json &j) {
JS_RD("nick", Nickname);
JS_RD("joined_at", JoinedAt);
JS_RD("premium_since", PremiumSince);
JS_RD("avatar", Avatar);
}