update twilight, songbird and reqwest

This commit is contained in:
2025-03-05 03:27:03 +01:00
parent c6e34cf000
commit b1d6069d81
10 changed files with 887 additions and 345 deletions

View File

@@ -1,5 +1,5 @@
use crate::commands::join::join_channel;
use crate::metadata::{Metadata, MetadataMap};
use crate::metadata::Metadata;
use crate::state::State;
use crate::{colors, db};
@@ -266,7 +266,7 @@ pub(crate) async fn play(
.http
.interaction(interaction.application_id)
.update_response(&interaction.token)
.embeds(Some(&embeds))?
.embeds(Some(&embeds))
.await?;
Ok(())
}
@@ -348,7 +348,7 @@ pub(crate) async fn play_inner(
.http
.interaction(interaction.application_id)
.update_response(&interaction.token)
.embeds(Some(&embeds))?
.embeds(Some(&embeds))
.await
.context("Could not send playlist loading message")?;
}
@@ -401,8 +401,8 @@ pub(crate) async fn play_inner(
}
}),
);
let mut x = handle.typemap().write().await;
x.insert::<MetadataMap>(Metadata {
let mut _x = handle.data::<Metadata>();
_x = Arc::new(Metadata {
title: metadata.title,
duration: metadata.duration,
url,
@@ -427,7 +427,7 @@ pub(crate) async fn play_inner(
.http
.interaction(interaction.application_id)
.update_response(&interaction.token)
.embeds(Some(&embeds))?
.embeds(Some(&embeds))
.await?;
return Ok(());
}
@@ -440,7 +440,7 @@ pub(crate) async fn play_inner(
.http
.interaction(interaction.application_id)
.update_response(&interaction.token)
.embeds(Some(&embeds))?
.embeds(Some(&embeds))
.await
.context("Could not send final play message")?;