diff options
| author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-12-06 03:04:22 -0500 |
|---|---|---|
| committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-12-06 03:04:22 -0500 |
| commit | d288989386acbade608fd02da7f078a99efa8578 (patch) | |
| tree | 3837cc79a799bde069ea23d7cd01e780113abd4d /src/discord/objects.hpp | |
| parent | d63941797f30d2d114d66a8edb03000e64488bd0 (diff) | |
| download | abaddon-portaudio-d288989386acbade608fd02da7f078a99efa8578.tar.gz abaddon-portaudio-d288989386acbade608fd02da7f078a99efa8578.zip | |
mark guild as read
Diffstat (limited to 'src/discord/objects.hpp')
| -rw-r--r-- | src/discord/objects.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/discord/objects.hpp b/src/discord/objects.hpp index 008fe98..28331c3 100644 --- a/src/discord/objects.hpp +++ b/src/discord/objects.hpp @@ -232,6 +232,7 @@ struct ReadStateEntry { // std::string LastPinTimestamp; iso friend void from_json(const nlohmann::json &j, ReadStateEntry &m); + friend void to_json(nlohmann::json &j, const ReadStateEntry &m); }; struct ReadStateData { @@ -772,3 +773,9 @@ struct MessageAckData { friend void from_json(const nlohmann::json &j, MessageAckData &m); }; + +struct AckBulkData { + std::vector<ReadStateEntry> ReadStates; + + friend void to_json(nlohmann::json &j, const AckBulkData &m); +}; |
