mark guild as read

This commit is contained in:
ouwou committed 2021-12-06 03:04:22 -05:00
1 parent d63941797f
commit d288989386
6 files changed
+48 -4

No files matched your search

+9
View File
@@ -125,6 +125,11 @@ void from_json(const nlohmann::json &j, ReadStateEntry &m) {
JS_D("id", m.ID);
}
void to_json(nlohmann::json &j, const ReadStateEntry &m) {
j["channel_id"] = m.ID;
j["message_id"] = m.LastMessageID;
}
void from_json(const nlohmann::json &j, ReadStateData &m) {
JS_ON("version", m.Version);
JS_ON("partial", m.IsPartial);
@@ -551,3 +556,7 @@ void from_json(const nlohmann::json &j, MessageAckData &m) {
JS_D("message_id", m.MessageID);
JS_D("channel_id", m.ChannelID);
}
void to_json(nlohmann::json &j, const AckBulkData &m) {
j["read_states"] = m.ReadStates;
}