diff --git a/src/command/join.rs b/src/command/join.rs index ba594c5..12061b0 100644 --- a/src/command/join.rs +++ b/src/command/join.rs @@ -275,14 +275,6 @@ pub async fn handle(state: State, interaction: Interaction) { .await .expect("TODO"); - let call = state - .songbird - .join(guild_id, voice_channel_id) - .await - .expect("TODO"); - - tracing::error!(?call, "successfully joined"); - let start_instant = Instant::now(); let start_utc = UtcDateTime::now(); @@ -304,6 +296,13 @@ 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 mut call = call.lock().await;