Package discord4j.core.object
Class ApplicationTeamMember
java.lang.Object
discord4j.core.object.ApplicationTeamMember
- All Implemented Interfaces:
DiscordObject
A Discord application team member.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Represents the various types of membership state. -
Constructor Summary
ConstructorDescriptionApplicationTeamMember
(GatewayDiscordClient gateway, discord4j.discordjson.json.ApplicationTeamMemberData data) Constructs anApplicationTeamMember
with an associatedGatewayDiscordClient
and Discord data. -
Method Summary
Modifier and TypeMethodDescriptionReturns theGatewayDiscordClient
that created this object.discord4j.discordjson.json.ApplicationTeamMemberData
getData()
Gets the data of the application team member.Gets the user's membership state on the team.Gets the id of the parent team of which they are a member.getUser()
Requests to retrieve the user this member is associated to.getUser
(EntityRetrievalStrategy retrievalStrategy) Requests to retrieve the user this member is associated to, using the given retrieval strategy.Gets the id of the user associated with this team member.toString()
-
Constructor Details
-
ApplicationTeamMember
public ApplicationTeamMember(GatewayDiscordClient gateway, discord4j.discordjson.json.ApplicationTeamMemberData data) Constructs anApplicationTeamMember
with an associatedGatewayDiscordClient
and Discord data.- Parameters:
gateway
- TheGatewayDiscordClient
associated to this object, must be non-null.data
- The raw data as represented by Discord, must be non-null.
-
-
Method Details
-
getClient
Description copied from interface:DiscordObject
Returns theGatewayDiscordClient
that created this object. Methods in it are exclusively based on the entity cache orStore
in use. Refer to callinggetClient().rest()
to access aDiscordClient
that is capable of requesting entities directly from the REST API.- Specified by:
getClient
in interfaceDiscordObject
- Returns:
- The
GatewayDiscordClient
associated 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
Gets the user's membership state on the team.- Returns:
- The user's membership state on the team.
-
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
Gets the id of the user associated with this team member.- Returns:
- The id of the user associated with this team member.
-
getUser
Requests to retrieve the user this member is associated to. -
getUser
Requests to retrieve the user this member is associated to, using the given retrieval strategy. -
toString
-