Class ApplicationTeam

java.lang.Object
discord4j.core.object.entity.ApplicationTeam
All Implemented Interfaces:
DiscordObject, Entity

public final class ApplicationTeam extends Object implements Entity
See Also:
  • Constructor Details

    • ApplicationTeam

      public ApplicationTeam(GatewayDiscordClient gateway, discord4j.discordjson.json.ApplicationTeamData data)
      Constructs a ApplicationTeam 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.
    • getId

      public Snowflake getId()
      Description copied from interface: Entity
      Gets the Snowflake that uniquely identifies this entity.
      Specified by:
      getId in interface Entity
      Returns:
      The Snowflake that uniquely identifies this entity.
    • getMembers

      public List<ApplicationTeamMember> getMembers()
      Gets the members of the team.
      Returns:
      The members of the team.
    • getName

      public String getName()
      Gets the name of the team.
      Returns:
      The name of the team.
    • getOwnerId

      public Snowflake getOwnerId()
      Gets the user id of the current team owner.
      Returns:
      The user id of the current team owner.
    • getOwner

      public Mono<User> getOwner()
      Requests to retrieve the current team owner.
      Returns:
      A Mono where, upon successful completion, emits the User associated with the current team owner. If an error is received, it is emitted through the Mono.
    • getOwner

      public Mono<User> getOwner(EntityRetrievalStrategy retrievalStrategy)
      Requests to retrieve the current team owner, 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 associated with the current team owner. If an error is received, it is emitted through the Mono.
    • toString

      public String toString()
      Overrides:
      toString in class Object