From 9733ae54c386f347e338c7854869ba2e57b113cb Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 14 Apr 2021 02:11:36 -0400 Subject: update rate limit indicator on failed message send this happens when you start the client while already rate-limited --- discord/objects.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'discord/objects.hpp') diff --git a/discord/objects.hpp b/discord/objects.hpp index d236736..80bad17 100644 --- a/discord/objects.hpp +++ b/discord/objects.hpp @@ -615,3 +615,13 @@ struct VerificationGateInfoObject { friend void from_json(const nlohmann::json &j, VerificationGateInfoObject &m); friend void to_json(nlohmann::json &j, const VerificationGateInfoObject &m); }; + +// not sure what the structure for this really is +struct RateLimitedResponse { + int Code; + bool Global; + std::optional Message; + float RetryAfter; + + friend void from_json(const nlohmann::json &j, RateLimitedResponse &m); +}; -- cgit v1.2.3