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:
  • Constructor Details

    • ApplicationTeamMember

      public ApplicationTeamMember(GatewayDiscordClient gateway, discord4j.discordjson.json.ApplicationTeamMemberData data)
      Constructs an ApplicationTeamMember with an associated GatewayDiscordClient and Discord data.
      Parameters:
      gateway - The GatewayDiscordClient associated to this object, must be non-null.
      data - The raw data as represented by Discord, must be non-null.
  • Method Details

    • getClient

      public GatewayDiscordClient getClient()
      Description copied from interface: DiscordObject
      Returns the GatewayDiscordClient that created this object. Methods in it are exclusively based on the entity cache or Store in use. Refer to calling getClient().rest() to access a DiscordClient that is capable of requesting entities directly from the REST API.
      Specified by:
      getClient in interface DiscordObject
      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()
      Requests to retrieve the user this member is associated to.
      Returns:
      A Mono where, upon successful completion, emits the User this member is associated to. If an error is received, it is emitted through the Mono.
    • getUser

      public Mono<User> getUser(EntityRetrievalStrategy retrievalStrategy)
      Requests to retrieve the user this member is associated to, using the given retrieval strategy.
      Parameters:
      retrievalStrategy - the strategy to use to get the user
      Returns:
      A Mono where, upon successful completion, emits the User this member is associated to. If an error is received, it is emitted through the Mono.
    • toString

      public String toString()
      Overrides:
      toString in class Object