diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-07-27 22:54:17 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-07-27 22:54:17 -0400 |
commit | 9d2d13a3898f05f9e8189f99087198726d476e1b (patch) | |
tree | a5e159e426f30920b136ba5137d76366dffe516b /discord/channel.cpp | |
parent | 1936f9ab8ab8687e3200a0ea31937339f9264c9e (diff) | |
download | abaddon-portaudio-9d2d13a3898f05f9e8189f99087198726d476e1b.tar.gz abaddon-portaudio-9d2d13a3898f05f9e8189f99087198726d476e1b.zip |
very rudimentary thread support
Diffstat (limited to 'discord/channel.cpp')
-rw-r--r-- | discord/channel.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/discord/channel.cpp b/discord/channel.cpp index 9d90eb5..e5dfb06 100644 --- a/discord/channel.cpp +++ b/discord/channel.cpp @@ -1,6 +1,13 @@ #include "../abaddon.hpp" #include "channel.hpp" +void from_json(const nlohmann::json &j, ThreadMetadata &m) { + JS_D("archived", m.IsArchived); + JS_D("auto_archive_duration", m.AutoArchiveDuration); + JS_D("archive_timestamp", m.ArchiveTimestamp); + JS_O("locked", m.IsLocked); +} + void from_json(const nlohmann::json &j, ChannelData &m) { JS_D("id", m.ID); JS_D("type", m.Type); @@ -21,6 +28,7 @@ void from_json(const nlohmann::json &j, ChannelData &m) { JS_O("application_id", m.ApplicationID); JS_ON("parent_id", m.ParentID); JS_ON("last_pin_timestamp", m.LastPinTimestamp); + JS_O("thread_metadata", m.ThreadMetadata); } void ChannelData::update_from_json(const nlohmann::json &j) { |