Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change the endpoint for updating gamepasses, resolving #211 #213

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mantle/rbx_api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# rbx_api

## 0.3.0
## 0.3.1

### Minor Changes

- add support for the grant asset permission endpoint
- change the endpoint for updating gamepasses, resolving #211
3 changes: 1 addition & 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,7 @@ 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
Loading