public class TeamsEndpoints extends Object
| Constructor and Description |
|---|
TeamsEndpoints() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<EmptyResponse> |
addMemberToTeam(String teamId,
String userId)
This endpoint is used to add a member to a team.
|
CompletableFuture<List<ModrinthTeamMember>> |
getProjectTeamMembers(String projectId)
This endpoint is used to get the team members of a project.
|
CompletableFuture<List<List<ModrinthTeamMember>>> |
getTeamMembers(List<String> teamIds)
This endpoint is used to get the team members of multiple teams by their IDs.
|
CompletableFuture<List<List<ModrinthTeamMember>>> |
getTeamMembers(String... teamIds)
This endpoint is used to get the team members of multiple teams by their IDs.
|
CompletableFuture<List<ModrinthTeamMember>> |
getTeamMembers(String teamId)
This endpoint is used to get the team members of a team.
|
CompletableFuture<EmptyResponse> |
joinTeam(String teamId)
This endpoint is used to join a team.
|
CompletableFuture<EmptyResponse> |
modifyTeamMemberInfo(String teamId,
String memberId,
ModifyTeamMemberInfo.ModifyTeamMemberInfoRequest request)
This endpoint is used to modify a team member's information.
|
CompletableFuture<EmptyResponse> |
removeMemberFromTeam(String teamId,
String memberId)
This endpoint is used to remove a member from a team.
|
CompletableFuture<EmptyResponse> |
transferOwnership(String teamId,
String newOwnerId)
This endpoint is used to transfer ownership of a team to another user.
|
public CompletableFuture<List<ModrinthTeamMember>> getProjectTeamMembers(String projectId)
projectId - - The ID of the project to get the team members of.CompletableFuture that will return the team members of
the project.public CompletableFuture<List<ModrinthTeamMember>> getTeamMembers(String teamId)
teamId - - The ID of the team to get the members of.CompletableFuture that will return the team members of
the
team.public CompletableFuture<List<List<ModrinthTeamMember>>> getTeamMembers(List<String> teamIds)
teamIds - - The IDs of the teams to get the members of.CompletableFuture that will return the team members of
the
teams.getTeamMembers(String[])public CompletableFuture<List<List<ModrinthTeamMember>>> getTeamMembers(String... teamIds)
teamIds - - The IDs of the teams to get the members of.CompletableFuture that will return the team members of
the teams.getTeamMembers(List)public CompletableFuture<EmptyResponse> addMemberToTeam(String teamId, String userId)
teamId - - The ID of the teamuserId - - The ID of the user (NOT the username)CompletableFuture that will return an empty response when
completedpublic CompletableFuture<EmptyResponse> joinTeam(String teamId)
teamId - - The ID of the teamCompletableFuture that will return an empty response when
completedpublic CompletableFuture<EmptyResponse> modifyTeamMemberInfo(String teamId, String memberId, ModifyTeamMemberInfo.ModifyTeamMemberInfoRequest request)
teamId - - The ID of the teammemberId - - The ID of the member (NOT the username)request - - The request to sendCompletableFuture that will return an empty response when
completedpublic CompletableFuture<EmptyResponse> removeMemberFromTeam(String teamId, String memberId)
teamId - - The ID of the teammemberId - - The ID of the member (NOT the username)CompletableFuture that will return an empty response when
completedpublic CompletableFuture<EmptyResponse> transferOwnership(String teamId, String newOwnerId)
teamId - - The ID of the teamnewOwnerId - - The ID of the new owner (NOT the username)CompletableFuture that will return an empty response when
completedCopyright © 2026. All rights reserved.