Package net.dv8tion.jda.api.entities
Enum TeamMember.MembershipState
- All Implemented Interfaces:
- Serializable,- Comparable<TeamMember.MembershipState>
- Enclosing interface:
- TeamMember
The membership state on the team.
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionstatic TeamMember.MembershipStatefromKey(int key) Resolves the provided key to the correct MembershipState.intgetKey()The key for this state that is used in the API.static TeamMember.MembershipStateReturns the enum constant of this type with the specified name.static TeamMember.MembershipState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
INVITEDThe user has a pending invite
- 
ACCEPTEDThe user has accepted an invite as is a member of this team
- 
UNKNOWNPlaceholder for future states
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getKeypublic int getKey()The key for this state that is used in the API.- Returns:
- The key for this state
 
- 
fromKeyResolves the provided key to the correct MembershipState.- Parameters:
- key- The key to resolve
- Returns:
- The MembershipState, or UNKNOWN
 
 
-