Class CommandReplyEditMono
java.lang.Object
reactor.core.publisher.Mono<Message>
dev.sympho.modular_commands.api.command.reply.CommandReplyEditMono
- All Implemented Interfaces:
org.reactivestreams.Publisher<Message>,CorePublisher<Message>
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class CommandReplyEditMono
extends Mono<Message>
Specification for editing a command reply that can be directly subscribed to to execute.
- Since:
- 1.0
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.discordjson.possible.Possible<Optional<discord4j.rest.util.AllowedMentions>>The new allowed mentions.discord4j.rest.util.AllowedMentionsallowedMentionsOrElse(discord4j.rest.util.AllowedMentions defaultValue) discord4j.discordjson.possible.Possible<Optional<List<Attachment>>>The new attachments.attachmentsOrElse(List<Attachment> defaultValue) discord4j.discordjson.possible.Possible<Optional<List<LayoutComponent>>>The new message components.componentsOrElse(List<LayoutComponent> defaultValue) content()The new reply message content.contentOrElse(String defaultValue) discord4j.discordjson.possible.Possible<Optional<List<EmbedCreateSpec>>>embeds()The new reply embeds.embedsOrElse(List<EmbedCreateSpec> defaultValue) booleanThis instance is equal to all instances ofCommandReplyEditMonothat have equal attribute values.com.google.common.collect.ImmutableList<MessageCreateFields.File>files()The new attached files.com.google.common.collect.ImmutableList<MessageCreateFields.FileSpoiler>The new spoiler-tagged attached files.inthashCode()Computes a hash code from attributes:content,embeds,files,fileSpoilers,allowedMentions,components,attachments,reply.booleanbooleanbooleanbooleanbooleanstatic CommandReplyEditMonoConstruct a new immutableCommandReplyEditMonoinstance.reply()The backing reply.voidsubscribe(CoreSubscriber<? super Message> actual) default InteractionReplyEditSpecConverts this spec into an interaction reply edit spec.default MessageEditSpecConverts this spec into a message edit spec.toString()Prints the immutable valueCommandReplyEditMonowith attribute values.withAllowedMentions(discord4j.discordjson.possible.Possible<Optional<discord4j.rest.util.AllowedMentions>> value) withAllowedMentions(discord4j.rest.util.AllowedMentions value) Deprecated.withAllowedMentionsOrNull(discord4j.rest.util.AllowedMentions value) final CommandReplyEditMonowithAttachments(Attachment... elements) withAttachments(discord4j.discordjson.possible.Possible<Optional<List<Attachment>>> possible) withAttachments(Iterable<Attachment> elements) Deprecated.withAttachmentsOrNull(Iterable<Attachment> elements) final CommandReplyEditMonowithComponents(LayoutComponent... elements) withComponents(discord4j.discordjson.possible.Possible<Optional<List<LayoutComponent>>> possible) withComponents(Iterable<LayoutComponent> elements) Deprecated.withComponentsOrNull(Iterable<LayoutComponent> elements) withContent(discord4j.discordjson.possible.Possible<Optional<String>> value) withContent(String value) Deprecated.withContentOrNull(String value) final CommandReplyEditMonowithEmbeds(EmbedCreateSpec... elements) withEmbeds(discord4j.discordjson.possible.Possible<Optional<List<EmbedCreateSpec>>> possible) withEmbeds(Iterable<EmbedCreateSpec> elements) Deprecated.withEmbedsOrNull(Iterable<EmbedCreateSpec> elements) final CommandReplyEditMonowithFiles(MessageCreateFields.File... elements) Copy the current immutable object with elements that replace the content offiles.final CommandReplyEditMonowithFiles(Iterable<? extends MessageCreateFields.File> elements) Copy the current immutable object with elements that replace the content offiles.final CommandReplyEditMonowithFileSpoilers(MessageCreateFields.FileSpoiler... elements) Copy the current immutable object with elements that replace the content offileSpoilers.final CommandReplyEditMonowithFileSpoilers(Iterable<? extends MessageCreateFields.FileSpoiler> elements) Copy the current immutable object with elements that replace the content offileSpoilers.final CommandReplyEditMonoCopy the current immutable object by setting a value for thereplyattribute.Methods inherited from class reactor.core.publisher.Mono
and, as, block, block, blockOptional, blockOptional, cache, cache, cache, cache, cache, cacheInvalidateIf, cacheInvalidateWhen, cacheInvalidateWhen, cancelOn, cast, checkpoint, checkpoint, checkpoint, concatWith, contextCapture, contextWrite, contextWrite, create, defaultIfEmpty, defer, deferContextual, delay, delay, delayElement, delayElement, delaySubscription, delaySubscription, delaySubscription, delayUntil, dematerialize, doAfterTerminate, doFinally, doFirst, doOnCancel, doOnDiscard, doOnEach, doOnError, doOnError, doOnError, doOnNext, doOnRequest, doOnSubscribe, doOnSuccess, doOnTerminate, elapsed, elapsed, empty, error, error, expand, expand, expandDeep, expandDeep, filter, filterWhen, first, first, firstWithSignal, firstWithSignal, firstWithValue, firstWithValue, flatMap, flatMapIterable, flatMapMany, flatMapMany, flux, from, fromCallable, fromCompletionStage, fromCompletionStage, fromDirect, fromFuture, fromFuture, fromFuture, fromFuture, fromRunnable, fromSupplier, handle, hasElement, hide, ignoreElement, ignoreElements, just, justOrEmpty, justOrEmpty, log, log, log, log, log, log, map, mapNotNull, materialize, mergeWith, metrics, name, never, ofType, onAssembly, onErrorComplete, onErrorComplete, onErrorComplete, onErrorContinue, onErrorContinue, onErrorContinue, onErrorMap, onErrorMap, onErrorMap, onErrorResume, onErrorResume, onErrorResume, onErrorReturn, onErrorReturn, onErrorReturn, onErrorStop, onTerminateDetach, or, publish, publishOn, repeat, repeat, repeat, repeat, repeatWhen, repeatWhenEmpty, repeatWhenEmpty, retry, retry, retryWhen, sequenceEqual, sequenceEqual, sequenceEqual, share, single, singleOptional, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribeOn, subscribeWith, switchIfEmpty, tag, take, take, takeUntilOther, tap, tap, tap, then, then, thenEmpty, thenMany, thenReturn, timed, timed, timeout, timeout, timeout, timeout, timeout, timeout, timestamp, timestamp, toFuture, transform, transformDeferred, transformDeferredContextual, using, using, usingWhen, usingWhen, when, when, whenDelayError, whenDelayError, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipWhen, zipWhen, zipWith, zipWith
-
Method Details
-
content
The new reply message content.- Returns:
- The value.
-
embeds
The new reply embeds.- Returns:
- The value.
-
files
The new attached files.- Returns:
- The value.
-
fileSpoilers
The new spoiler-tagged attached files.- Returns:
- The value.
-
allowedMentions
public discord4j.discordjson.possible.Possible<Optional<discord4j.rest.util.AllowedMentions>> allowedMentions()The new allowed mentions.- Returns:
- The value.
-
components
The new message components.- Returns:
- The value.
-
attachments
The new attachments.- Returns:
- The value.
-
reply
The backing reply.- Returns:
- The reply.
-
withContent
public CommandReplyEditMono withContent(discord4j.discordjson.possible.Possible<Optional<String>> value) -
withContent
Deprecated. -
withContentOrNull
-
withEmbeds
public CommandReplyEditMono withEmbeds(discord4j.discordjson.possible.Possible<Optional<List<EmbedCreateSpec>>> possible) -
withEmbeds
Deprecated. -
withEmbedsOrNull
-
withEmbeds
-
withFiles
Copy the current immutable object with elements that replace the content offiles.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withFiles
Copy the current immutable object with elements that replace the content offiles. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of files elements to set- Returns:
- A modified copy of
thisobject
-
withFileSpoilers
Copy the current immutable object with elements that replace the content offileSpoilers.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withFileSpoilers
public final CommandReplyEditMono withFileSpoilers(Iterable<? extends MessageCreateFields.FileSpoiler> elements) Copy the current immutable object with elements that replace the content offileSpoilers. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of fileSpoilers elements to set- Returns:
- A modified copy of
thisobject
-
withAllowedMentions
public CommandReplyEditMono withAllowedMentions(discord4j.discordjson.possible.Possible<Optional<discord4j.rest.util.AllowedMentions>> value) -
withAllowedMentions
@Deprecated public CommandReplyEditMono withAllowedMentions(@Nullable discord4j.rest.util.AllowedMentions value) Deprecated. -
withAllowedMentionsOrNull
public CommandReplyEditMono withAllowedMentionsOrNull(@Nullable discord4j.rest.util.AllowedMentions value) -
withComponents
public CommandReplyEditMono withComponents(discord4j.discordjson.possible.Possible<Optional<List<LayoutComponent>>> possible) -
withComponents
@Deprecated public CommandReplyEditMono withComponents(@Nullable Iterable<LayoutComponent> elements) Deprecated. -
withComponentsOrNull
-
withComponents
-
withAttachments
public CommandReplyEditMono withAttachments(discord4j.discordjson.possible.Possible<Optional<List<Attachment>>> possible) -
withAttachments
Deprecated. -
withAttachmentsOrNull
-
withAttachments
-
withReply
Copy the current immutable object by setting a value for thereplyattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for reply- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofCommandReplyEditMonothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:content,embeds,files,fileSpoilers,allowedMentions,components,attachments,reply. -
toString
Prints the immutable valueCommandReplyEditMonowith attribute values.- Returns:
- A string representation of the value
-
of
Construct a new immutableCommandReplyEditMonoinstance.- Parameters:
reply- The value for thereplyattribute- Returns:
- An immutable CommandReplyEditMono instance
-
isContentPresent
public boolean isContentPresent() -
contentOrElse
-
isEmbedsPresent
public boolean isEmbedsPresent() -
embedsOrElse
-
isAllowedMentionsPresent
public boolean isAllowedMentionsPresent() -
allowedMentionsOrElse
public discord4j.rest.util.AllowedMentions allowedMentionsOrElse(discord4j.rest.util.AllowedMentions defaultValue) -
isComponentsPresent
public boolean isComponentsPresent() -
componentsOrElse
-
isAttachmentsPresent
public boolean isAttachmentsPresent() -
attachmentsOrElse
-
subscribe
-
toMessage
Converts this spec into a message edit spec.- Returns:
- The converted spec.
-
toInteraction
Converts this spec into an interaction reply edit spec.- Returns:
- The converted spec.
-