diff --git a/src/dpp/discordevents.cpp b/src/dpp/discordevents.cpp index b9f9695647..96098cdbec 100644 --- a/src/dpp/discordevents.cpp +++ b/src/dpp/discordevents.cpp @@ -87,7 +87,7 @@ void set_snowflake_array_not_null(const json* j, const char *keyname, std::vecto if (k != j->end() && !k->is_null()) { v.reserve(j->at(keyname).size()); for (const auto &id : j->at(keyname)) { - v.emplace_back(std::stoull(id.get())); + v.emplace_back(std::strtoull(id.get().c_str(), nullptr, 10)); } } }