public class UserEndpoints extends Object
| Constructor and Description |
|---|
UserEndpoints() |
public CompletableFuture<ModrinthUser> getUser(String id)
id - - The ID or username of the userpublic CompletableFuture<List<ModrinthUser>> getUser(String... ids)
getUser(String)ids - - The IDs of the userspublic CompletableFuture<List<ModrinthUser>> getUser(List<String> ids)
getUser(String)ids - - The IDs of the userspublic CompletableFuture<EmptyResponse> modifyUser(String id, ModifyUser.ModifyUserRequest request)
id - - The ID of the userrequest - - The request to sendCompletableFuture that will return an
EmptyResponse when completepublic CompletableFuture<EmptyResponse> deleteUser(String id)
id - - The ID of the userCompletableFuture that will return an
EmptyResponse when completepublic CompletableFuture<ModrinthUser> getSelf()
public CompletableFuture<EmptyResponse> changeProfilePicture(String id, File file) throws FileNotFoundException
id - - The ID of the userfile - - The file to use as the profile pictureCompletableFuture that will return an
EmptyResponse when completeFileNotFoundException - - If the file cannot be foundpublic CompletableFuture<EmptyResponse> changeProfilePicture(String id, InputStream stream, String filename)
id - - The ID of the userstream - - The stream to use as the profile picturefilename - - The filename of the profile pictureCompletableFuture that will return an
EmptyResponse when completepublic CompletableFuture<List<Project>> getUserProjects(String id)
id - - The ID of the userCompletableFuture that will return a List of
Projects when completepublic CompletableFuture<List<Project>> getUserFollowedProjects(String id)
id - - The ID of the userCompletableFuture that will return a List of
Projects when completepublic CompletableFuture<List<ModrinthUserNotification>> getNotifications(String id)
id - - The ID of the userCompletableFuture that will return a List of
ModrinthUserNotifications when completepublic CompletableFuture<ReportProjectUserOrVersion.ReportProjectUserOrVersionResponse> reportProjectUserOrVersion(ReportProjectUserOrVersion.ReportProjectUserOrVersionRequest request)
request - - The request to sendCompletableFuture that will return a
ReportProjectUserOrVersion.ReportProjectUserOrVersionResponse when completeCopyright © 2026. All rights reserved.