1
0
mirror of https://github.com/uowuo/abaddon.git synced 2025-03-04 03:03:16 -05:00

store suppressed state

This commit is contained in:
ouwou 2024-03-12 21:24:58 -04:00
parent 98218dfde3
commit fba1f568c2
2 changed files with 2 additions and 0 deletions

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);

View File

@ -10,6 +10,7 @@ enum class VoiceStateFlags : uint8_t {
SelfMute = 1 << 3,
SelfStream = 1 << 4,
SelfVideo = 1 << 5,
Suppressed = 1 << 6,
};
template<>