mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
voice_states can be missing
This commit is contained in:
1 parent
337a3d5811
commit
59e16cbb3b
1 file changed
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user