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.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'discord/objects.cpp') diff --git a/discord/objects.cpp b/discord/objects.cpp index c96ae67..131afda 100644 --- a/discord/objects.cpp +++ b/discord/objects.cpp @@ -444,3 +444,10 @@ void to_json(nlohmann::json &j, const VerificationGateInfoObject &m) { JS_IF("version", m.Version); JS_IF("enabled", m.Enabled); } + +void from_json(const nlohmann::json &j, RateLimitedResponse &m) { + JS_D("code", m.Code); + JS_D("global", m.Global); + JS_O("message", m.Message); + JS_D("retry_after", m.RetryAfter); +} -- cgit v1.2.3