fix: listen for voice events

This commit is contained in:
2026-04-10 00:53:23 -04:00
parent 7885526944
commit dfda319ab4
2 changed files with 17 additions and 4 deletions

View File

@@ -150,15 +150,25 @@ pub async fn handle(state: State, interaction: Interaction) {
state
.discord_client
.interaction(state.discord_application_id)
.update_response(&interaction.token)
.embeds(Some(&[EmbedBuilder::new()
.create_response(interaction.id, &interaction.token,
&InteractionResponse {
kind: InteractionResponseType::ChannelMessageWithSource,
data: Some(
InteractionResponseDataBuilder::new()
.embeds([
EmbedBuilder::new()
.title("Left VC")
.description(format!(
"This bot left {channel_mention} (and is thereby unable to record anymore)."
))
.validate()
.unwrap()
.build()]))
.build()
])
.flags(MessageFlags::EPHEMERAL)
.build(),
),
},)
.await
.expect("TODO");
}