summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-07-13 18:01:03 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-07-13 18:01:03 -0400
commit59e16cbb3ba6c109fff5a714ae4ff40def18ed24 (patch)
treeed37ba3530f7d925d2b24583b11b1577f6f6054d /src
parent337a3d5811b55994ca7db97fea94f6b96dfaf57c (diff)
downloadabaddon-portaudio-59e16cbb3ba6c109fff5a714ae4ff40def18ed24.tar.gz
abaddon-portaudio-59e16cbb3ba6c109fff5a714ae4ff40def18ed24.zip
voice_states can be missing
Diffstat (limited to 'src')
-rw-r--r--src/discord/objects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/discord/objects.cpp b/src/discord/objects.cpp
index 63bd43f..cb0a685 100644
--- a/src/discord/objects.cpp
+++ b/src/discord/objects.cpp
@@ -251,7 +251,7 @@ void from_json(const nlohmann::json &j, SupplementalMergedPresencesData &m) {
void from_json(const nlohmann::json &j, SupplementalGuildEntry &m) {
JS_D("id", m.ID);
- JS_D("voice_states", m.VoiceStates);
+ JS_ON("voice_states", m.VoiceStates);
}
void from_json(const nlohmann::json &j, ReadySupplementalData &m) {
@@ -691,7 +691,7 @@ void from_json(const nlohmann::json &j, VoiceServerUpdateData &m) {
void from_json(const nlohmann::json &j, CallCreateData &m) {
JS_D("channel_id", m.ChannelID);
- JS_D("voice_states", m.VoiceStates);
+ JS_ON("voice_states", m.VoiceStates);
}
#endif