Compare commits

...

2 Commits

Author SHA1 Message Date
f548955d16 fix: add event handlers before joining call 2026-05-14 00:47:06 -04:00
298799d43a chore: update lockfile 2026-05-14 00:41:35 -04:00
2 changed files with 522 additions and 525 deletions

1032
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -300,13 +300,7 @@ pub async fn handle(state: State, interaction: Interaction) {
user_data_manager: state.user_data_manager,
};
let call = state
.songbird
.join(guild_id, voice_channel_id)
.await
.expect("TODO");
tracing::error!(?call, "successfully joined");
let call = state.songbird.get_or_insert(guild_id);
{
let mut call = call.lock().await;
@@ -316,6 +310,13 @@ pub async fn handle(state: State, interaction: Interaction) {
call.mute(true).await.expect("TODO");
}
state
.songbird
.join(guild_id, voice_channel_id)
.await
.expect("TODO");
tracing::error!(?call, "successfully joined");
let channel_mention = format!("<#{voice_channel_id}>");
let info_mention = format!(