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 class
ApplicationTeamMember.MembershipState
Represents the various types of membership state.
-
Constructor Summary
Constructors Constructor Description ApplicationTeamMember(GatewayDiscordClient gateway, discord4j.discordjson.json.ApplicationTeamMemberData data)
Constructs anApplicationTeamMember
with an associatedGatewayDiscordClient
and Discord data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GatewayDiscordClient
getClient()
Returns theGatewayDiscordClient
that created this object.discord4j.discordjson.json.ApplicationTeamMemberData
getData()
Gets the data of the application team member.ApplicationTeamMember.MembershipState
getMembershipState()
Gets the user's membership state on the team.Snowflake
getTeamId()
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.Snowflake
getUserId()
Gets the id of the user associated with this team member.String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
getClient
public GatewayDiscordClient 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
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.
-
-