disk cache guild

This commit is contained in:
ouwou
2020-12-08 20:59:41 -05:00
parent b84a98fbb9
commit bd918e7606
8 changed files with 301 additions and 125 deletions

View File

@@ -56,10 +56,10 @@ void from_json(const nlohmann::json &j, Guild &m) {
JS_O("max_video_channel_users", m.MaxVideoChannelUsers);
JS_O("approximate_member_count", tmp);
if (tmp.has_value())
m.ApproximateMemberCount = std::stoull(*tmp);
m.ApproximateMemberCount = std::stol(*tmp);
JS_O("approximate_presence_count", tmp);
if (tmp.has_value())
m.ApproximatePresenceCount = std::stoull(*tmp);
m.ApproximatePresenceCount = std::stol(*tmp);
}
void Guild::update_from_json(const nlohmann::json &j) {