Uses of Class
dev.sympho.modular_commands.utils.builder.CommandBuilder
Packages that use CommandBuilder
-
Uses of CommandBuilder in dev.sympho.modular_commands.utils.builder
Methods in dev.sympho.modular_commands.utils.builder that return CommandBuilderModifier and TypeMethodDescriptionCommandBuilder.addAliases(@MatchesRegex("(?U)^[-_\\p{L}\\p{N}\\p{sc=Deva}\\p{sc=Thai}]{1,32}+$") String... aliases) Adds aliases to the command.CommandBuilder.addParameter(Parameter<?> parameter) Adds a parameter to the command.static <H extends Handlers>
CommandBuilder<H>Constructs a new builder that is initialized to make a copy of the given command.static CommandBuilder<InteractionHandlers>CommandBuilder.interaction()Creates a builder for an interaction command.static CommandBuilder<MessageHandlers>CommandBuilder.message()Creates a builder for a message-only command.CommandBuilder.noAliases()Removes all aliases from the command.CommandBuilder.noParameters()Removes all parameters from the command.CommandBuilder.requireGroup(@Nullable Group group) Sets the group that a user must have access for.CommandBuilder.setEphemeralReply(@Nullable ReplyManager.EphemeralType ephemeralReply) Sets the type of ephemeral response to use, if any.CommandBuilder.setInheritSettings(boolean inheritSettings) Sets whether the command should inherit settings from the parent command.CommandBuilder.setInvokeParent(boolean invokeParent) Sets whether the command should also invoke the parent's handler.CommandBuilder.setNsfw(boolean nsfw) Sets whether the command can only be run in channels marked as NSFW.CommandBuilder.setPrivateReply(boolean privateReply) Sets whether the command response should be sent privately to the caller.CommandBuilder.setRequireParentGroups(boolean require) Sets whether the command also require its parent command's groups.CommandBuilder.setSkipGroupCheckOnInteraction(boolean skip) Sets whether group access checking should be skipped.static CommandBuilder<SlashHandlers>CommandBuilder.slash()Creates a builder for a slash-only command.static CommandBuilder<TextHandlers>CommandBuilder.text()Creates a builder for a text (message and slash) command.CommandBuilder.withAliases(@Nullable Set<@MatchesRegex("(?U)^[-_\\p{L}\\p{N}\\p{sc=Deva}\\p{sc=Thai}]{1,32}+$") String> aliases) Sets the aliases that a user should support.CommandBuilder.withCallable(boolean callable) Sets whether the command can be invoked directly.CommandBuilder.withDescription(@MatchesRegex("(?Us)^.{1,100}+$") String description) Sets the description of the command.CommandBuilder.withDisplayName(@MatchesRegex("(?U)^[ -_\\p{L}\\p{N}\\p{sc=Deva}\\p{sc=Thai}]{1,32}+$") String name) Sets the display name of the command.CommandBuilder.withHandlers(H handlers) Sets the handlers of the command.CommandBuilder.withName(@MatchesRegex("(?U)^[-_\\p{L}\\p{N}\\p{sc=Deva}\\p{sc=Thai}]{1,32}+$") String name) Sets the name of the command.CommandBuilder.withParameters(@Nullable List<Parameter<?>> parameters) Sets the parameters that a user should provide.CommandBuilder.withParent(@Nullable Invocation parent) Sets the parent command.CommandBuilder.withScope(@Nullable Command.Scope scope) Sets the command scope.Constructors in dev.sympho.modular_commands.utils.builder with parameters of type CommandBuilderModifierConstructorDescriptionCommandBuilder(CommandBuilder<? extends H> base) Constructs a new builder that is a copy of the given builder.