Package discord4j.core.object
Class ApplicationTeamMember
- java.lang.Object
-
- discord4j.core.object.ApplicationTeamMember
-
- All Implemented Interfaces:
DiscordObject
public class ApplicationTeamMember extends Object implements DiscordObject
A Discord application team member.- See Also:
- Team Member Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicationTeamMember.MembershipStateRepresents the various types of membership state.
-
Constructor Summary
Constructors Constructor Description ApplicationTeamMember(GatewayDiscordClient gateway, discord4j.discordjson.json.ApplicationTeamMemberData data)Constructs anApplicationTeamMemberwith an associatedGatewayDiscordClientand Discord data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GatewayDiscordClientgetClient()Returns theGatewayDiscordClientthat created this object.discord4j.discordjson.json.ApplicationTeamMemberDatagetData()Gets the data of the application team member.ApplicationTeamMember.MembershipStategetMembershipState()Gets the user's membership state on the team.SnowflakegetTeamId()Gets the id of the parent team of which they are a member.Mono<User>getUser()Requests to retrieve the user this member is associated to.Mono<User>getUser(EntityRetrievalStrategy retrievalStrategy)Requests to retrieve the user this member is associated to, using the given retrieval strategy.SnowflakegetUserId()Gets the id of the user associated with this team member.StringtoString()
-
-
-
Constructor Detail
-
ApplicationTeamMember
public ApplicationTeamMember(GatewayDiscordClient gateway, discord4j.discordjson.json.ApplicationTeamMemberData data)
Constructs anApplicationTeamMemberwith an associatedGatewayDiscordClientand Discord data.- Parameters:
gateway- TheGatewayDiscordClientassociated to this object, must be non-null.data- The raw data as represented by Discord, must be non-null.
-
-
Method Detail
-
getClient
public GatewayDiscordClient getClient()
Description copied from interface:DiscordObjectReturns theGatewayDiscordClientthat created this object. Methods in it are exclusively based on the entity cache orStorein use. Refer to callinggetClient().rest()to access aDiscordClientthat is capable of requesting entities directly from the REST API.- Specified by:
getClientin interfaceDiscordObject- Returns:
- The
GatewayDiscordClientassociated to this object.
-
getData
public discord4j.discordjson.json.ApplicationTeamMemberData getData()
Gets the data of the application team member.- Returns:
- The data of the application team member.
-
getMembershipState
public ApplicationTeamMember.MembershipState getMembershipState()
Gets the user's membership state on the team.- Returns:
- The user's membership state on the team.
-
getTeamId
public Snowflake getTeamId()
Gets the id of the parent team of which they are a member.- Returns:
- The id of the parent team of which they are a member.
-
getUserId
public Snowflake getUserId()
Gets the id of the user associated with this team member.- Returns:
- The id of the user associated with this team member.
-
getUser
public Mono<User> getUser(EntityRetrievalStrategy retrievalStrategy)
Requests to retrieve the user this member is associated to, using the given retrieval strategy.
-
-