diff --git a/pixivpy3/aapi.py b/pixivpy3/aapi.py index b8fe8fa..fc5b9bf 100644 --- a/pixivpy3/aapi.py +++ b/pixivpy3/aapi.py @@ -616,6 +616,13 @@ def user_follow_delete(self, user_id: int | str, req_auth: bool = True) -> Parse r = self.no_auth_requests_call("POST", url, data=data, req_auth=req_auth) return self.parse_result(r) + # 设置用户选项中是否展现AI生成作品 + def user_edit_ai_show_settings(self, setting:_BOOL, req_auth: bool = True) -> ParsedJson: + url = "%s/v1/user/ai-show-settings/edit" % self.hosts + data = {"show_ai": setting} + r = self.no_auth_requests_call("POST", url, data=data, req_auth=req_auth) + return self.parse_result(r) + # 用户收藏标签列表 def user_bookmark_tags_illust( self,