Package net.dv8tion.jda.api.entities
Interface TeamMember
-
public interface TeamMember
Member of aApplicationTeam
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TeamMember.MembershipState
The membership state on the team.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TeamMember.MembershipState
getMembershipState()
The state of this member.default java.lang.String
getTeamId()
The id for the team this member belongs to.long
getTeamIdLong()
The id for the team this member belongs to.User
getUser()
User for the team member.
-
-
-
Method Detail
-
getUser
@Nonnull User getUser()
User for the team member.- Returns:
- The user
-
getMembershipState
@Nonnull TeamMember.MembershipState getMembershipState()
The state of this member.
Note: the API does not seem to provide members withTeamMember.MembershipState.INVITED
to bots.- Returns:
- The
TeamMember.MembershipState
, orUNKNOWN
-
getTeamId
@Nonnull default java.lang.String getTeamId()
The id for the team this member belongs to.- Returns:
- The team id.
-
getTeamIdLong
long getTeamIdLong()
The id for the team this member belongs to.- Returns:
- The team id.
-
-