diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-14 02:11:36 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-14 02:11:36 -0400 |
commit | 9733ae54c386f347e338c7854869ba2e57b113cb (patch) | |
tree | 9954638cbd0b7172e7822b0bdf799c02eb41d0df /discord/objects.cpp | |
parent | 9a7a468607d0e289c8a42adfa13bc2e9f65e9696 (diff) | |
download | abaddon-portaudio-9733ae54c386f347e338c7854869ba2e57b113cb.tar.gz abaddon-portaudio-9733ae54c386f347e338c7854869ba2e57b113cb.zip |
update rate limit indicator on failed message send
this happens when you start the client while already rate-limited
Diffstat (limited to 'discord/objects.cpp')
-rw-r--r-- | discord/objects.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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); +} |