From bd918e760692a80988e1ba12bffa366b453567d6 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 8 Dec 2020 20:59:41 -0500 Subject: disk cache guild --- discord/guild.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord/guild.cpp') diff --git a/discord/guild.cpp b/discord/guild.cpp index 054a2c3..31b4dd6 100644 --- a/discord/guild.cpp +++ b/discord/guild.cpp @@ -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) { -- cgit v1.2.3