From 2f9a0e51a98ec2d63c173b4e9e6f65392948a688 Mon Sep 17 00:00:00 2001 From: Blake Mealey Date: Tue, 12 Mar 2024 10:15:55 -0500 Subject: [PATCH] fix(rbx_api): replace deprecated update game pass api (#214) --- mantle/rbx_api/src/game_passes/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mantle/rbx_api/src/game_passes/mod.rs b/mantle/rbx_api/src/game_passes/mod.rs index f6c8fef..7ddff0e 100644 --- a/mantle/rbx_api/src/game_passes/mod.rs +++ b/mantle/rbx_api/src/game_passes/mod.rs @@ -106,7 +106,6 @@ impl RobloxApi { icon_file: Option, ) -> RobloxApiResult { let mut form = Form::new() - .text("id", game_pass_id.to_string()) .text("name", name) .text("description", description) .text("isForSale", price.is_some().to_string()); @@ -119,7 +118,10 @@ impl RobloxApi { let req = self .client - .post("https://www.roblox.com/game-pass/update") + .post(format!( + "https://apis.roblox.com/game-passes/v1/game-passes/{}/details", + game_pass_id + )) .multipart(form); handle(req).await?;