Class ApplicationTeamMember

    • Constructor Detail

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

      • getData

        public discord4j.discordjson.json.ApplicationTeamMemberData getData()
        Gets the data of the application team member.
        Returns:
        The data of the application team member.
      • 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.