Interface CategorizableChannel

    • Method Detail

      • getCategoryId

        Optional<Snowflake> getCategoryId()
        Gets the ID of the category for this channel, if present.
        Returns:
        The ID of the category for this channel, if present.
      • getCategory

        Mono<Category> getCategory()
        Requests to retrieve the category for this channel, if present.
        Returns:
        A Mono where, upon successful completion, emits the category this channel, if present. If an error is received, it is emitted through the Mono.
      • getCategory

        Mono<Category> getCategory​(EntityRetrievalStrategy retrievalStrategy)
        Requests to retrieve the category for this channel, if present, using the given retrieval strategy.
        Parameters:
        retrievalStrategy - the strategy to use to get the category
        Returns:
        A Mono where, upon successful completion, emits the category this channel, if present. If an error is received, it is emitted through the Mono.
      • createInvite

        default discord4j.core.spec.InviteCreateMono createInvite()
        Requests to create an invite. Properties specifying how to create the invite can be set via the withXxx methods of the returned InviteCreateMono.
        Returns:
        A InviteCreateMono where, upon successful completion, emits the created ExtendedInvite. If an error is received, it is emitted through the InviteCreateMono.
      • createInvite

        Mono<ExtendedInvite> createInvite​(discord4j.core.spec.InviteCreateSpec spec)
        Requests to create an invite.
        Parameters:
        spec - an immutable object that specifies how to create the invite
        Returns:
        A Mono where, upon successful completion, emits the created ExtendedInvite. If an error is received, it is emitted through the Mono.
      • getInvites

        Flux<ExtendedInvite> getInvites()
        Requests to retrieve this channel's invites.
        Returns:
        A Flux that continually emits this channel's invites. If an error is received, it is emitted through the Flux.