Skip to content

Commit

Permalink
fix(rbx_api): replace deprecated update game pass api (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
blake-mealey authored Mar 12, 2024
1 parent 2ce8b25 commit 2f9a0e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mantle/rbx_api/src/game_passes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ impl RobloxApi {
icon_file: Option<PathBuf>,
) -> RobloxApiResult<GetGamePassResponse> {
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());
Expand All @@ -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?;
Expand Down

0 comments on commit 2f9a0e5

Please sign in to comment.