Start working on User::modify().

This commit is contained in:
bitfl0wer 2023-05-15 23:20:23 +02:00
parent 62e46ac160
commit fbd9170806
1 changed files with 17 additions and 0 deletions

View File

@ -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<u64>,
banner: Option<&str>,
current_password: Option<&str>,
new_password: Option<&str>,
code: Option<&str>,
email: Option<&str>,
discriminator: Option<i16>,
) {
let mut limits = self.limits;
let request = Client::new().patch(format!("{}/users/@me/", self.belongs_to.urls.get_api()));
}
}
impl Instance {