Package dev.sympho.bot_utils.event.reply
Class ReplyEditMono
- All Implemented Interfaces:
org.reactivestreams.Publisher<Message>,CorePublisher<Message>
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ReplyEditMono
extends Mono<Message>
Specification for editing an event 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 ofReplyEditMonothat 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 ReplyEditMonoConstruct a new immutableReplyEditMonoinstance.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 valueReplyEditMonowith 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 ReplyEditMonowithAttachments(Attachment... elements) withAttachments(discord4j.discordjson.possible.Possible<? extends Optional<? extends List<? extends Attachment>>> possible) withAttachments(Iterable<Attachment> elements) Deprecated.withAttachmentsOrNull(Iterable<? extends Attachment> elements) final ReplyEditMonowithComponents(LayoutComponent... elements) withComponents(discord4j.discordjson.possible.Possible<? extends Optional<? extends List<? extends LayoutComponent>>> possible) withComponents(Iterable<LayoutComponent> elements) Deprecated.withComponentsOrNull(Iterable<? extends LayoutComponent> elements) withContent(discord4j.discordjson.possible.Possible<Optional<String>> value) withContent(String value) Deprecated.withContentOrNull(String value) final ReplyEditMonowithEmbeds(EmbedCreateSpec... elements) withEmbeds(discord4j.discordjson.possible.Possible<? extends Optional<? extends List<? extends EmbedCreateSpec>>> possible) withEmbeds(Iterable<EmbedCreateSpec> elements) Deprecated.withEmbedsOrNull(Iterable<? extends EmbedCreateSpec> elements) final ReplyEditMonowithFiles(MessageCreateFields.File... elements) Copy the current immutable object with elements that replace the content offiles.final ReplyEditMonowithFiles(Iterable<? extends MessageCreateFields.File> elements) Copy the current immutable object with elements that replace the content offiles.final ReplyEditMonowithFileSpoilers(MessageCreateFields.FileSpoiler... elements) Copy the current immutable object with elements that replace the content offileSpoilers.final ReplyEditMonowithFileSpoilers(Iterable<? extends MessageCreateFields.FileSpoiler> elements) Copy the current immutable object with elements that replace the content offileSpoilers.final ReplyEditMonoCopy 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
-
withContent
Deprecated. -
withContentOrNull
-
withEmbeds
public ReplyEditMono withEmbeds(discord4j.discordjson.possible.Possible<? extends Optional<? extends List<? extends 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 ReplyEditMono 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 ReplyEditMono withAllowedMentions(discord4j.discordjson.possible.Possible<Optional<discord4j.rest.util.AllowedMentions>> value) -
withAllowedMentions
@Deprecated public ReplyEditMono withAllowedMentions(@Nullable discord4j.rest.util.AllowedMentions value) Deprecated. -
withAllowedMentionsOrNull
-
withComponents
public ReplyEditMono withComponents(discord4j.discordjson.possible.Possible<? extends Optional<? extends List<? extends LayoutComponent>>> possible) -
withComponents
Deprecated. -
withComponentsOrNull
-
withComponents
-
withAttachments
public ReplyEditMono withAttachments(discord4j.discordjson.possible.Possible<? extends Optional<? extends List<? extends 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 ofReplyEditMonothat 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 valueReplyEditMonowith attribute values.- Returns:
- A string representation of the value
-
of
Construct a new immutableReplyEditMonoinstance.- Parameters:
reply- The value for thereplyattribute- Returns:
- An immutable ReplyEditMono 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.
-