From e8cbb9d3d1ecca25f1e0a31a75fac70c7a3ea0cb Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 11 Jan 2021 18:27:46 -0500 Subject: add typing indicator with optional res/typing_indicator.gif --- discord/objects.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'discord/objects.cpp') diff --git a/discord/objects.cpp b/discord/objects.cpp index 2c1f5a1..cf0f504 100644 --- a/discord/objects.cpp +++ b/discord/objects.cpp @@ -239,3 +239,11 @@ void from_json(const nlohmann::json &j, ChannelRecipientRemove &m) { JS_D("user", m.User); JS_D("channel_id", m.ChannelID); } + +void from_json(const nlohmann::json &j, TypingStartObject &m) { + JS_D("channel_id", m.ChannelID); + JS_O("guild_id", m.GuildID); + JS_D("user_id", m.UserID); + JS_D("timestamp", m.Timestamp); + JS_O("member", m.Member); +} -- cgit v1.2.3