diff --git a/src/api.rs b/src/api.rs index e301359..5e17ad7 100644 --- a/src/api.rs +++ b/src/api.rs @@ -1084,6 +1084,17 @@ impl MisskeyClient { Ok(()) } + pub async fn invalidate_follower( + &self, + host: &str, + token: &str, + user_id: &str, + ) -> Result<(), NoteDeckError> { + self.request(host, token, "following/invalidate", json!({ "userId": user_id })) + .await?; + Ok(()) + } + pub async fn accept_follow_request( &self, host: &str, @@ -1975,6 +1986,28 @@ impl MisskeyClient { Ok(()) } + pub async fn renote_mute_user( + &self, + host: &str, + token: &str, + user_id: &str, + ) -> Result<(), NoteDeckError> { + self.request(host, token, "renote-mute/create", json!({ "userId": user_id })) + .await?; + Ok(()) + } + + pub async fn unrenote_mute_user( + &self, + host: &str, + token: &str, + user_id: &str, + ) -> Result<(), NoteDeckError> { + self.request(host, token, "renote-mute/delete", json!({ "userId": user_id })) + .await?; + Ok(()) + } + pub async fn block_user( &self, host: &str,