Class CommandReplyEditSpec
java.lang.Object
dev.sympho.modular_commands.api.command.reply.CommandReplyEditSpec
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class CommandReplyEditSpec
extends Object
Specification for editing a previosly sent command reply.
- Since:
- 1.0
- Version:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeCommandReplyEditSpec. -
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) static CommandReplyEditSpec.Builderbuilder()Creates a builder forCommandReplyEditSpec.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 ofCommandReplyEditSpecthat have equal attribute values.files()The new attached files.The new spoiler-tagged attached files.inthashCode()Computes a hash code from attributes:content,embeds,files,fileSpoilers,allowedMentions,components,attachments.booleanbooleanbooleanbooleanbooleandefault InteractionReplyEditSpecConverts this spec into an interaction reply edit spec.default MessageEditSpecConverts this spec into a message edit spec.toString()Prints the immutable valueCommandReplyEditSpecwith 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 CommandReplyEditSpecwithAttachments(Attachment... elements) withAttachments(discord4j.discordjson.possible.Possible<Optional<List<Attachment>>> possible) withAttachments(Iterable<Attachment> elements) Deprecated.withAttachmentsOrNull(Iterable<Attachment> elements) final CommandReplyEditSpecwithComponents(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 CommandReplyEditSpecwithEmbeds(EmbedCreateSpec... elements) withEmbeds(discord4j.discordjson.possible.Possible<Optional<List<EmbedCreateSpec>>> possible) withEmbeds(Iterable<EmbedCreateSpec> elements) Deprecated.withEmbedsOrNull(Iterable<EmbedCreateSpec> elements) withFiles(MessageCreateFields.File... elements) withFiles(Iterable<? extends MessageCreateFields.File> elements) withFileSpoilers(MessageCreateFields.FileSpoiler... elements) withFileSpoilers(Iterable<? extends MessageCreateFields.FileSpoiler> elements)
-
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.
-
withContent
public CommandReplyEditSpec withContent(discord4j.discordjson.possible.Possible<Optional<String>> value) -
withContent
Deprecated. -
withContentOrNull
-
withEmbeds
public CommandReplyEditSpec withEmbeds(discord4j.discordjson.possible.Possible<Optional<List<EmbedCreateSpec>>> possible) -
withEmbeds
Deprecated. -
withEmbedsOrNull
-
withEmbeds
-
withFiles
-
withFiles
-
withFileSpoilers
-
withFileSpoilers
public CommandReplyEditSpec withFileSpoilers(Iterable<? extends MessageCreateFields.FileSpoiler> elements) -
withAllowedMentions
public CommandReplyEditSpec withAllowedMentions(discord4j.discordjson.possible.Possible<Optional<discord4j.rest.util.AllowedMentions>> value) -
withAllowedMentions
@Deprecated public CommandReplyEditSpec withAllowedMentions(@Nullable discord4j.rest.util.AllowedMentions value) Deprecated. -
withAllowedMentionsOrNull
public CommandReplyEditSpec withAllowedMentionsOrNull(@Nullable discord4j.rest.util.AllowedMentions value) -
withComponents
public CommandReplyEditSpec withComponents(discord4j.discordjson.possible.Possible<Optional<List<LayoutComponent>>> possible) -
withComponents
@Deprecated public CommandReplyEditSpec withComponents(@Nullable Iterable<LayoutComponent> elements) Deprecated. -
withComponentsOrNull
-
withComponents
-
withAttachments
public CommandReplyEditSpec withAttachments(discord4j.discordjson.possible.Possible<Optional<List<Attachment>>> possible) -
withAttachments
Deprecated. -
withAttachmentsOrNull
-
withAttachments
-
equals
This instance is equal to all instances ofCommandReplyEditSpecthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:content,embeds,files,fileSpoilers,allowedMentions,components,attachments. -
toString
Prints the immutable valueCommandReplyEditSpecwith attribute values. -
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
-
builder
Creates a builder forCommandReplyEditSpec.CommandReplyEditSpec.builder() .content(discord4j.discordjson.possible.Possible<Optional<String>>) //content.embeds(discord4j.discordjson.possible.Possible<Optional<List<discord4j.core.spec.EmbedCreateSpec>>>) //embeds.files(List<discord4j.core.spec.MessageCreateFields.File>) //files.fileSpoilers(List<discord4j.core.spec.MessageCreateFields.FileSpoiler>) //fileSpoilers.allowedMentions(discord4j.discordjson.possible.Possible<Optional<discord4j.rest.util.AllowedMentions>>) //allowedMentions.components(discord4j.discordjson.possible.Possible<Optional<List<discord4j.core.object.component.LayoutComponent>>>) //components.attachments(discord4j.discordjson.possible.Possible<Optional<List<discord4j.core.object.entity.Attachment>>>) //attachments.build();- Returns:
- A new CommandReplyEditSpec builder
-
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.
-