From 0cee4ccc2f45919498ac9e5838761ee49d6ba1eb Mon Sep 17 00:00:00 2001 From: Ivin Joel Abraham Date: Wed, 13 Nov 2024 17:49:42 +0530 Subject: [PATCH] add support for edit_current_application endpoint --- src/http/client.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/http/client.rs b/src/http/client.rs index 659e0c98c8f..fe921aa8cd8 100644 --- a/src/http/client.rs +++ b/src/http/client.rs @@ -3311,6 +3311,26 @@ impl Http { .await } + /// Modifies information about the current application. + /// + /// **Note**: Only applications may use this endpoint. + pub async fn edit_current_application_info( + &self, + map: &impl serde::Serialize, + ) -> Result { + let body = to_vec(map)?; + + self.fire(Request { + body: Some(body), + multipart: None, + headers: None, + method: LightMethod::Patch, + route: Route::Oauth2ApplicationCurrent, + params: None, + }) + .await + } + /// Gets information about the user we're connected with. pub async fn get_current_user(&self) -> Result { self.fire(Request {