feat: mute
This commit is contained in:
@@ -288,6 +288,8 @@ pub async fn handle(state: State, interaction: Interaction) {
|
|||||||
|
|
||||||
call.add_global_event(CoreEvent::SpeakingStateUpdate.into(), handler.clone());
|
call.add_global_event(CoreEvent::SpeakingStateUpdate.into(), handler.clone());
|
||||||
call.add_global_event(CoreEvent::VoiceTick.into(), handler);
|
call.add_global_event(CoreEvent::VoiceTick.into(), handler);
|
||||||
|
|
||||||
|
call.mute(true).await.expect("TODO");
|
||||||
}
|
}
|
||||||
|
|
||||||
let channel_mention = format!("<#{voice_channel_id}>");
|
let channel_mention = format!("<#{voice_channel_id}>");
|
||||||
|
|||||||
Reference in New Issue
Block a user