mod: mute audience feature
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user