Package org.javacord.api.entity.team
Interface TeamMember
-
- All Superinterfaces:
DiscordEntity
public interface TeamMember extends DiscordEntity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description longgetId()Gets the user id of this member.TeamMembershipStategetMembershipState()Gets the state of the membership.default java.util.concurrent.CompletableFuture<User>requestUser()Requests the member as user.-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, getIdAsString
-
-
-
-
Method Detail
-
getMembershipState
TeamMembershipState getMembershipState()
Gets the state of the membership.- Returns:
- The state of the membership.
-
getId
long getId()
Gets the user id of this member.- Specified by:
getIdin interfaceDiscordEntity- Returns:
- The user id.
- See Also:
- Discord docs
-
requestUser
default java.util.concurrent.CompletableFuture<User> requestUser()
Requests the member as user.If the user is not cached, it will be requested.
- Returns:
- The member as user.
-
-