Package net.dv8tion.jda.api.entities
Interface TeamMember
-
public interface TeamMemberMember of aApplicationTeam.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTeamMember.MembershipStateThe membership state on the team.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TeamMember.MembershipStategetMembershipState()The state of this member.default java.lang.StringgetTeamId()The id for the team this member belongs to.longgetTeamIdLong()The id for the team this member belongs to.UsergetUser()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.INVITEDto 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.
-
-