Users
1. The Users Client
The UsersClient provides access to Modrinth users.
Access it through the main Modrinth client:
modrinth.users()2. Getting a User
Fetch a user by their ID or username:
User user = modrinth.users().get("Geometrically");val user = modrinth.users().get("Geometrically")Both Modrinth user IDs and usernames are supported.
3. Getting Multiple Users
Fetch multiple users at once by their IDs:
List<User> users = modrinth.users().getMany(
"user-id-1",
"user-id-2"
);val users = modrinth.users().getMany(
"user-id-1",
"user-id-2"
){/* Two public methods. This page is doing its best. */}