From fbd91708061de717d792075f762e119d62602a97 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Mon, 15 May 2023 23:20:23 +0200 Subject: [PATCH] Start working on User::modify(). --- src/api/users/users.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/api/users/users.rs b/src/api/users/users.rs index 88a68ca..1320546 100644 --- a/src/api/users/users.rs +++ b/src/api/users/users.rs @@ -76,6 +76,23 @@ impl<'a> User<'a> { Err(e) => Err(e), } } + + pub async fn modify( + self, + username: Option<&str>, + avatar: Option<&str>, + bio: Option<&str>, + accent_color: Option, + banner: Option<&str>, + current_password: Option<&str>, + new_password: Option<&str>, + code: Option<&str>, + email: Option<&str>, + discriminator: Option, + ) { + let mut limits = self.limits; + let request = Client::new().patch(format!("{}/users/@me/", self.belongs_to.urls.get_api())); + } } impl Instance {