Class ApplicationTeam

    • Constructor Detail

      • 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 Detail

      • 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.