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:
parent
98218dfde3
commit
fba1f568c2
@ -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);
|
||||
|
@ -10,6 +10,7 @@ enum class VoiceStateFlags : uint8_t {
|
||||
SelfMute = 1 << 3,
|
||||
SelfStream = 1 << 4,
|
||||
SelfVideo = 1 << 5,
|
||||
Suppressed = 1 << 6,
|
||||
};
|
||||
|
||||
template<>
|
||||
|
Loading…
Reference in New Issue
Block a user