diff options
Diffstat (limited to 'discord/objects.cpp')
-rw-r--r-- | discord/objects.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/objects.cpp b/discord/objects.cpp index 8588b30..c4b1517 100644 --- a/discord/objects.cpp +++ b/discord/objects.cpp @@ -472,3 +472,7 @@ void to_json(nlohmann::json &j, const FriendRequestObject &m) { void to_json(nlohmann::json &j, const PutRelationshipObject &m) { JS_IF("type", m.Type); } + +void from_json(const nlohmann::json &j, ThreadCreateData &m) { + j.get_to(m.Channel); +} |