Uses of Record Class
dev.sympho.modular_commands.api.command.parameter.Parameter
Packages that use Parameter
Package
Description
APIs related to defining a command.
Interfaces that represent the invocation context of a command.
Interfaces defining the result of handling an invoked command.
Internal implementation-specific classes.
Implementations for command contexts.
Collection of classes that provide assorted utilies for ease of use.
Builders for various types.
-
Uses of Parameter in dev.sympho.modular_commands.api.command
Methods in dev.sympho.modular_commands.api.command that return types with arguments of type ParameterModifier and TypeMethodDescriptionCommand.parameters()The command inline parameters, in the order that they should be provided by the user. -
Uses of Parameter in dev.sympho.modular_commands.api.command.context
Methods in dev.sympho.modular_commands.api.command.context with parameters of type ParameterModifier and TypeMethodDescriptionCommandContext.getArgument(Parameter<? extends T> parameter) Retrieves one of the arguments to the command.CommandContext.getArgument(Parameter<? extends T> parameter, Class<T> argumentType) Retrieves one of the arguments to the command.CommandContext.requireArgument(Parameter<? extends T> parameter) Retrieves one of the arguments to the command, assuming it is non-null (so either required or with a default value).CommandContext.requireArgument(Parameter<? extends T> parameter, Class<T> argumentType) Retrieves one of the arguments to the command, assuming it is non-null (so either required or with a default value). -
Uses of Parameter in dev.sympho.modular_commands.api.command.result
Methods in dev.sympho.modular_commands.api.command.result that return ParameterModifier and TypeMethodDescriptionParameter<?>CommandFailureArgumentInvalid.parameter()Returns the value of theparameterrecord component.Parameter<?>CommandFailureArgumentMissing.parameter()Returns the value of theparameterrecord component.Constructors in dev.sympho.modular_commands.api.command.result with parameters of type ParameterModifierConstructorDescriptionCommandFailureArgumentInvalid(Parameter<?> parameter, String error) Creates an instance of aCommandFailureArgumentInvalidrecord class.CommandFailureArgumentMissing(Parameter<?> parameter) Creates an instance of aCommandFailureArgumentMissingrecord class. -
Uses of Parameter in dev.sympho.modular_commands.impl
Methods in dev.sympho.modular_commands.impl that return types with arguments of type ParameterModifier and TypeMethodDescriptionCommandImpl.parameters()Returns the value of theparametersrecord component.Constructor parameters in dev.sympho.modular_commands.impl with type arguments of type ParameterModifierConstructorDescriptionCommandImpl(Command.Scope scope, boolean callable, Invocation parent, @MatchesRegex("(?U)^[-_\\p{L}\\p{N}\\p{sc=Deva}\\p{sc=Thai}]{1,32}+$") String name, Set<@MatchesRegex("(?U)^[-_\\p{L}\\p{N}\\p{sc=Deva}\\p{sc=Thai}]{1,32}+$") String> aliases, @MatchesRegex("(?U)^[ -_\\p{L}\\p{N}\\p{sc=Deva}\\p{sc=Thai}]{1,32}+$") String displayName, @MatchesRegex("(?Us)^.{1,100}+$") String description, List<Parameter<?>> parameters, Group requiredGroup, boolean skipGroupCheckOnInteraction, boolean requireParentGroups, boolean nsfw, boolean privateReply, ReplyManager.EphemeralType ephemeralReply, boolean inheritSettings, boolean invokeParent, H handlers) Initializes a new instance. -
Uses of Parameter in dev.sympho.modular_commands.impl.context
Fields in dev.sympho.modular_commands.impl.context with type parameters of type ParameterModifier and TypeFieldDescriptionContextImpl.parametersThe command parameters in the order that they should be received.Constructor parameters in dev.sympho.modular_commands.impl.context with type arguments of type ParameterModifierConstructorDescriptionMessageContextImpl(MessageCreateEvent event, Invocation invocation, List<Parameter<?>> parameters, StringSplitter.Async.Iterator args, AccessValidator access) Initializes a new context. -
Uses of Parameter in dev.sympho.modular_commands.utils
Methods in dev.sympho.modular_commands.utils that return ParameterModifier and TypeMethodDescriptionValidates a parameter.Methods in dev.sympho.modular_commands.utils that return types with arguments of type ParameterModifier and TypeMethodDescriptionCommandUtils.validateParameters(List<Parameter<?>> parameters) Validates the parameters of a command.Methods in dev.sympho.modular_commands.utils with parameters of type ParameterModifier and TypeMethodDescriptionValidates a parameter.Method parameters in dev.sympho.modular_commands.utils with type arguments of type ParameterModifier and TypeMethodDescriptionCommandUtils.validateParameters(List<Parameter<?>> parameters) Validates the parameters of a command. -
Uses of Parameter in dev.sympho.modular_commands.utils.builder
Fields in dev.sympho.modular_commands.utils.builder with type parameters of type ParameterMethods in dev.sympho.modular_commands.utils.builder that return ParameterMethods in dev.sympho.modular_commands.utils.builder with parameters of type ParameterModifier and TypeMethodDescriptionCommandBuilder.addParameter(Parameter<?> parameter) Adds a parameter to the command.static <T extends @NonNull Object>
ParameterBuilder<T>Constructs a new builder that is initialized to make a copy of the given parameter.Method parameters in dev.sympho.modular_commands.utils.builder with type arguments of type ParameterModifier and TypeMethodDescriptionCommandBuilder.withParameters(@Nullable List<Parameter<?>> parameters) Sets the parameters that a user should provide.