handle THREAD_DELETE

This commit is contained in:
ouwou
2021-07-30 01:32:43 -04:00
parent 355ef009c8
commit 22376ba54a
6 changed files with 46 additions and 3 deletions

View File

@@ -87,6 +87,7 @@ void to_json(nlohmann::json &j, const LazyLoadRequestMessage &m) {
}
j["d"]["typing"] = m.ShouldGetTyping;
j["d"]["activities"] = m.ShouldGetActivities;
j["d"]["threads"] = m.ShouldGetThreads;
if (m.Members.has_value())
j["d"]["members"] = *m.Members;
}
@@ -476,3 +477,10 @@ void to_json(nlohmann::json &j, const PutRelationshipObject &m) {
void from_json(const nlohmann::json &j, ThreadCreateData &m) {
j.get_to(m.Channel);
}
void from_json(const nlohmann::json &j, ThreadDeleteData &m) {
JS_D("id", m.ID);
JS_D("guild_id", m.GuildID);
JS_D("parent_id", m.ParentID);
JS_D("type", m.Type);
}