From 0a049856782397a7464d03c317ce3788559cdeda Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 2 Sep 2022 01:25:33 -0400 Subject: make compile work if voice support is disabled --- src/discord/objects.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/discord/objects.hpp') diff --git a/src/discord/objects.hpp b/src/discord/objects.hpp index 240b4c5..c9c8aff 100644 --- a/src/discord/objects.hpp +++ b/src/discord/objects.hpp @@ -867,6 +867,7 @@ struct GuildMembersChunkData { friend void from_json(const nlohmann::json &j, GuildMembersChunkData &m); }; +#ifdef WITH_VOICE struct VoiceStateUpdateMessage { Snowflake GuildID; Snowflake ChannelID; @@ -892,3 +893,4 @@ struct VoiceServerUpdateData { friend void from_json(const nlohmann::json &j, VoiceServerUpdateData &m); }; +#endif -- cgit v1.2.3