Uses of Record Class
dev.sympho.modular_commands.api.command.Invocation
Packages that use Invocation
Package
Description
APIs related to defining a command.
Interfaces that represent the invocation context of a command.
Exceptions thrown by the system.
Registry system for registering commands that can be executed.
Runtime system for executing commands defined through the API.
Default implementation for command interfaces.
Implementations for command contexts.
Default implementations for registries.
Collection of classes that provide assorted utilies for ease of use.
Builders for commands.
-
Uses of Invocation in dev.sympho.modular_commands.api.command
Methods in dev.sympho.modular_commands.api.command that return InvocationModifier and TypeMethodDescriptionDetermines the invocation formed by adding the given command name to this invocation.default Invocation
Command.invocation()
The invocation that executes this command.static Invocation
Constructs an invocation from the given sequence of command names.Command.parent()
The parent of the command.Invocation.parent()
Determines the parent invocation of this chain.Methods in dev.sympho.modular_commands.api.command that return types with arguments of type InvocationModifier and TypeMethodDescriptiondefault Set<Invocation>
MessageCommand.aliasInvocations()
The alias invocations that may also invoke the command. -
Uses of Invocation in dev.sympho.modular_commands.api.command.context
Methods in dev.sympho.modular_commands.api.command.context that return InvocationModifier and TypeMethodDescriptionAnyCommandContext.getInvocation()
CommandContext.getInvocation()
Retrieves the invocation that triggered the command. -
Uses of Invocation in dev.sympho.modular_commands.api.exception
Methods in dev.sympho.modular_commands.api.exception that return InvocationModifier and TypeMethodDescriptionInvalidChainException.getCommand()
Retrieves the command that was being executed.IncompleteHandlingException.getInvocation()
Retrieves the invocation that triggered the command.InvalidChainException.getParent()
Retrieves the ancestor that is incompatible.Constructors in dev.sympho.modular_commands.api.exception with parameters of type InvocationModifierConstructorDescriptionIncompleteHandlingException
(List<? extends Command> chain, Invocation invocation) Creates a new instance. -
Uses of Invocation in dev.sympho.modular_commands.api.registry
Methods in dev.sympho.modular_commands.api.registry with parameters of type InvocationModifier and TypeMethodDescriptionRegistry.findCommand
(Invocation invocation, Class<? extends C> type) Retrieves the best command known to this registry that has the given parent and name, and is compatible with the given type. -
Uses of Invocation in dev.sympho.modular_commands.execute
Methods in dev.sympho.modular_commands.execute with parameters of type InvocationModifier and TypeMethodDescriptionprotected abstract CTX
PipelineBuilder.makeContext
(E event, C command, Invocation invocation, List<String> args) Creates a command context from a parsed invocation. -
Uses of Invocation in dev.sympho.modular_commands.impl.command
Methods in dev.sympho.modular_commands.impl.command that return InvocationModifier and TypeMethodDescriptionInteractionCommandImpl.parent()
Returns the value of theparent
record component.MessageCommandImpl.parent()
Returns the value of theparent
record component.SlashCommandImpl.parent()
Returns the value of theparent
record component.TextCommandImpl.parent()
Returns the value of theparent
record component.Constructors in dev.sympho.modular_commands.impl.command with parameters of type InvocationModifierConstructorDescriptionInteractionCommandImpl
(Command.Scope scope, boolean callable, Invocation parent, String name, String displayName, String description, List<Parameter<?>> parameters, discord4j.rest.util.PermissionSet requiredDiscordPermissions, boolean requireParentPermissions, boolean nsfw, boolean botOwnerOnly, boolean serverOwnerOnly, boolean privateReply, boolean inheritSettings, boolean invokeParent, InteractionInvocationHandler invocationHandler, List<? extends InteractionResultHandler> resultHandlers) Initializes a new instance.MessageCommandImpl
(Command.Scope scope, boolean callable, Invocation parent, String name, String displayName, Set<String> aliases, String description, List<Parameter<?>> parameters, discord4j.rest.util.PermissionSet requiredDiscordPermissions, boolean requireParentPermissions, boolean nsfw, boolean botOwnerOnly, boolean serverOwnerOnly, boolean privateReply, boolean inheritSettings, boolean invokeParent, MessageInvocationHandler invocationHandler, List<? extends MessageResultHandler> resultHandlers) Initializes a new instance.SlashCommandImpl
(Command.Scope scope, boolean callable, Invocation parent, String name, String displayName, String description, List<Parameter<?>> parameters, discord4j.rest.util.PermissionSet requiredDiscordPermissions, boolean requireParentPermissions, boolean nsfw, boolean botOwnerOnly, boolean serverOwnerOnly, boolean privateReply, boolean inheritSettings, boolean invokeParent, SlashInvocationHandler invocationHandler, List<? extends SlashResultHandler> resultHandlers) Initializes a new instance.TextCommandImpl
(Command.Scope scope, boolean callable, Invocation parent, String name, String displayName, Set<String> aliases, String description, List<Parameter<?>> parameters, discord4j.rest.util.PermissionSet requiredDiscordPermissions, boolean requireParentPermissions, boolean nsfw, boolean botOwnerOnly, boolean serverOwnerOnly, boolean privateReply, boolean inheritSettings, boolean invokeParent, AnyCommandHandler invocationHandler, List<? extends AnyResultHandler> resultHandlers) Initializes a new instance. -
Uses of Invocation in dev.sympho.modular_commands.impl.context
Constructors in dev.sympho.modular_commands.impl.context with parameters of type InvocationModifierConstructorDescriptionMessageContextImpl
(MessageCreateEvent event, Invocation invocation, List<Parameter<?>> parameters, List<String> args) Initializes a new context. -
Uses of Invocation in dev.sympho.modular_commands.impl.registry
Methods in dev.sympho.modular_commands.impl.registry with parameters of type InvocationModifier and TypeMethodDescriptionSimpleRegistry.findCommand
(Invocation invocation, Class<? extends C> type) -
Uses of Invocation in dev.sympho.modular_commands.utils
Methods in dev.sympho.modular_commands.utils that return InvocationModifier and TypeMethodDescriptionstatic Invocation
CommandUtils.validateParent
(Invocation parent) Validates the parent of a command.Methods in dev.sympho.modular_commands.utils with parameters of type InvocationModifier and TypeMethodDescriptionstatic Invocation
CommandUtils.validateParent
(Invocation parent) Validates the parent of a command. -
Uses of Invocation in dev.sympho.modular_commands.utils.builder.command
Fields in dev.sympho.modular_commands.utils.builder.command declared as InvocationModifier and TypeFieldDescriptionprotected Invocation
CommandBuilder.parent
The command parent.protected Invocation
CommandBuilder.parent
The command parent.protected Invocation
CommandBuilder.parent
The command parent.