mod: mute audience feature

This commit is contained in:
2026-08-02 13:45:17 -04:00
parent 451275682d
commit bca88c7a70
6 changed files with 193 additions and 20 deletions
+5
View File
@@ -1,3 +1,4 @@
use std::collections::HashSet;
use std::f32::consts::TAU;
use std::io::Cursor;
use std::sync::Arc;
@@ -24,6 +25,9 @@ pub struct BuzzerSession {
pub buzzed_user: Option<UserId>,
pub is_open: bool,
/// Members server-muted by this session. Only these members are unmuted
/// when the buzzer is reset, unlocked, or stopped.
pub muted_user_ids: HashSet<UserId>,
}
impl BuzzerSession {
@@ -42,6 +46,7 @@ impl BuzzerSession {
button_message_id,
buzzed_user: None,
is_open: true,
muted_user_ids: HashSet::new(),
}
}
}