hoisted_role can be missing from guild member list update

This commit is contained in:
ouwou committed 2022-06-14 02:15:08 -04:00
1 parent 4ec5c1dfcc
commit 2474ffc2ba
1 file changed
+1 -1
+1 -1
View File
@@ -41,7 +41,7 @@ void from_json(const nlohmann::json &j, GuildMemberListUpdateMessage::MemberItem
JS_D("mute", m.IsMuted);
JS_D("joined_at", m.JoinedAt);
JS_D("deaf", m.IsDefeaned);
JS_N("hoisted_role", m.HoistedRole);
JS_ON("hoisted_role", m.HoistedRole);
JS_ON("premium_since", m.PremiumSince);
JS_ON("nick", m.Nickname);
JS_ON("presence", m.Presence);