From e08e3106d68da08c58f3a5bde968d4367bef78df Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sat, 1 Oct 2022 17:46:10 -0400 Subject: rudimentary dm voice call support --- src/discord/objects.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/discord/objects.cpp') diff --git a/src/discord/objects.cpp b/src/discord/objects.cpp index 3e87e43..37a9241 100644 --- a/src/discord/objects.cpp +++ b/src/discord/objects.cpp @@ -666,13 +666,14 @@ void to_json(nlohmann::json &j, const VoiceStateUpdateMessage &m) { void from_json(const nlohmann::json &j, VoiceServerUpdateData &m) { JS_D("token", m.Token); - JS_D("guild_id", m.GuildID); JS_D("endpoint", m.Endpoint); + JS_ON("guild_id", m.GuildID); + JS_ON("channel_id", m.ChannelID); } #endif void from_json(const nlohmann::json &j, VoiceState &m) { - JS_O("guild_id", m.GuildID); + JS_ON("guild_id", m.GuildID); JS_N("channel_id", m.ChannelID); JS_D("deaf", m.IsDeafened); JS_D("mute", m.IsMuted); -- cgit v1.2.3