store suppressed state

This commit is contained in:
ouwou committed 2024-03-12 21:24:58 -04:00
1 parent 98218dfde3
commit fba1f568c2
2 files changed
+2

No files matched your search

+1
View File
@@ -2960,6 +2960,7 @@ void DiscordClient::SetVoiceState(Snowflake user_id, const VoiceState &state) {
if (state.IsDeafened) flags |= VoiceStateFlags::Deaf;
if (state.IsSelfStream) flags |= VoiceStateFlags::SelfStream;
if (state.IsSelfVideo) flags |= VoiceStateFlags::SelfVideo;
if (state.IsSuppressed) flags |= VoiceStateFlags::Suppressed;
m_voice_states[user_id] = std::make_pair(*state.ChannelID, flags);
m_voice_state_channel_users[*state.ChannelID].insert(user_id);
+1
View File
@@ -10,6 +10,7 @@ enum class VoiceStateFlags : uint8_t {
SelfMute = 1 << 3,
SelfStream = 1 << 4,
SelfVideo = 1 << 5,
Suppressed = 1 << 6,
};
template<>