summaryrefslogtreecommitdiff
path: root/discord/guild.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-12-08 20:59:41 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2020-12-08 20:59:41 -0500
commitbd918e760692a80988e1ba12bffa366b453567d6 (patch)
tree5e0b5a7b189185941964a5a3780e03c0ebd8d1ee /discord/guild.cpp
parentb84a98fbb99c1b9184ea6f12d7366028d488beb3 (diff)
downloadabaddon-portaudio-bd918e760692a80988e1ba12bffa366b453567d6.tar.gz
abaddon-portaudio-bd918e760692a80988e1ba12bffa366b453567d6.zip
disk cache guild
Diffstat (limited to 'discord/guild.cpp')
-rw-r--r--discord/guild.cpp4
1 files changed, 2 insertions, 2 deletions
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) {