Update twitch integration

This commit is contained in:
2024-08-06 01:46:07 +02:00
parent 06d86716cb
commit 18c4d4f14d
2 changed files with 66 additions and 4 deletions

View File

@@ -966,8 +966,7 @@ impl<T: TokenStorage> Client<T> {
.data)
}
pub async fn get_stream(&mut self) -> Result<Stream> {
let broadcaster_id = self.get_token_user_id().await?;
pub async fn get_stream(&mut self, broadcaster_id: String) -> Result<Stream> {
match self
.get_streams(
vec![broadcaster_id].into(),