Uses of Interface
dev.sympho.modular_commands.api.command.context.CommandContext
Packages that use CommandContext
Package
Description
Interfaces that represent the invocation context of a command.
Handler interfaces used across the system.
Interfaces defining how received arguments are parsed.
Runtime system for executing commands defined through the API.
Implementations for command contexts.
Parsing utilities.
-
Uses of CommandContext in dev.sympho.modular_commands.api.command.context
Subinterfaces of CommandContext in dev.sympho.modular_commands.api.command.contextModifier and TypeInterfaceDescriptioninterface
The execution context of an command invoked through an interaction (application command).interface
The execution context of an command invoked through a message.interface
The execution context of an command invoked through a slash command. -
Uses of CommandContext in dev.sympho.modular_commands.api.command.handler
Classes in dev.sympho.modular_commands.api.command.handler with type parameters of type CommandContextModifier and TypeInterfaceDescriptioninterface
InvocationHandler<C extends @NonNull CommandContext>
A function that handles the execution of a command.interface
ResultHandler<C extends @NonNull CommandContext>
A function that handles the result of a command.Fields in dev.sympho.modular_commands.api.command.handler with type parameters of type CommandContextModifier and TypeFieldDescriptionstatic final InvocationHandler<CommandContext>
Handlers.CONTINUE
An invocation handler that simply signals that handling should continue.Methods in dev.sympho.modular_commands.api.command.handler that return types with arguments of type CommandContextModifier and TypeMethodDescriptionTextHandlers.Impl.invocation()
Returns the value of theinvocation
record component.TextHandlers.invocation()
List<? extends ResultHandler<CommandContext>>
TextHandlers.Impl.result()
Returns the value of theresult
record component.List<? extends ResultHandler<CommandContext>>
TextHandlers.result()
Method parameters in dev.sympho.modular_commands.api.command.handler with type arguments of type CommandContextModifier and TypeMethodDescriptionstatic TextHandlers
Handlers.text
(InvocationHandler<CommandContext> invocation) Creates a handler set with the given handlers, with support only for text-based commands, and no result handlers.static TextHandlers
Handlers.text
(InvocationHandler<CommandContext> invocation, ResultHandler<CommandContext>... result) Creates a handler set with the given handlers, with support for text-based commands.static TextHandlers
Handlers.text
(InvocationHandler<CommandContext> invocation, List<? extends ResultHandler<CommandContext>> result) Creates a handler set with the given handlers, with support for text-based commands.static TextHandlers
Handlers.text
(InvocationHandler<CommandContext> invocation, List<? extends ResultHandler<CommandContext>> result) Creates a handler set with the given handlers, with support for text-based commands.Constructor parameters in dev.sympho.modular_commands.api.command.handler with type arguments of type CommandContextModifierConstructorDescriptionImpl
(InvocationHandler<CommandContext> invocation, List<? extends ResultHandler<CommandContext>> result) Creates an instance of aImpl
record class.Impl
(InvocationHandler<CommandContext> invocation, List<? extends ResultHandler<CommandContext>> result) Creates an instance of aImpl
record class. -
Uses of CommandContext in dev.sympho.modular_commands.api.command.parameter.parse
Methods in dev.sympho.modular_commands.api.command.parameter.parse with parameters of type CommandContextModifier and TypeMethodDescriptionParserFunction.apply
(CommandContext context, R raw) reactor.netty.http.client.HttpClient
AttachmentDataParser.Resources.HttpClientRetriever.getClient
(CommandContext context) Determines the HTTP client to use with the given execution context.default reactor.netty.http.client.HttpClient
AttachmentDataParser.getHttpClient
(CommandContext context) Determines the HTTP client to use to fetch the attachment.ArgumentParser.parse
(CommandContext context, R raw) AttachmentParserStages.Parser.parse
(CommandContext context, reactor.netty.http.client.HttpClientResponse response, reactor.netty.ByteBufMono body) Parses the response from fetching the attachment file into the corresponding value.ParserFunction.parse
(CommandContext context, R raw) Parses the given raw argument from the user into the corresponding value.ParserFunction.PostParser.parse
(CommandContext context, R raw) Parsers.Functor.parse
(CommandContext context, R raw) Parsers.Simple.parse
(CommandContext context, R raw) Parsers.Synchronous.parse
(CommandContext context, R raw) TextFileParser.parse
(CommandContext context, String content) Parses the content of the attachment file.TextFileParser.parse
(CommandContext context, reactor.netty.http.client.HttpClientResponse response, reactor.netty.ByteBufMono body) ArgumentParser.parseArgument
(CommandContext context, R raw) Parses the given raw argument from the user into the corresponding value.AttachmentDataParser.parseArgument
(CommandContext context, Attachment raw) ListParser.parseArgument
(CommandContext context, String raw) ListParser.parseItem
(CommandContext context, String raw) Parses an individual item in the list.Parsers.Synchronous.parseNow
(CommandContext context, R raw) Parses the given raw argument from the user into the corresponding value.Parsers.raw
(CommandContext context, R raw) Returns the raw value received. -
Uses of CommandContext in dev.sympho.modular_commands.execute
Subinterfaces of CommandContext in dev.sympho.modular_commands.executeModifier and TypeInterfaceDescriptioninterface
A command context that is instrumented for use with metrics and tracing tooling.interface
A command context whose values (particularly arguments) are lazy-loaded (that is, are not loaded until requested byLazyContext.initialize(ObservationRegistry)
andLazyContext.load()
).Fields in dev.sympho.modular_commands.execute with type parameters of type CommandContextModifier and TypeFieldDescriptionstatic final ResultHandler<CommandContext>
BaseHandler.DEFAULT
The initial/default base handler.Methods in dev.sympho.modular_commands.execute that return types with arguments of type CommandContextModifier and TypeMethodDescriptionstatic ResultHandler<CommandContext>
BaseHandler.get()
Retrieves the current base handler.Method parameters in dev.sympho.modular_commands.execute with type arguments of type CommandContextModifier and TypeMethodDescriptionstatic void
BaseHandler.set
(ResultHandler<CommandContext> handler) Sets the base handler. -
Uses of CommandContext in dev.sympho.modular_commands.impl.context
Classes in dev.sympho.modular_commands.impl.context that implement CommandContextModifier and TypeClassDescriptionfinal class
Context object for invocations performed through text messages. -
Uses of CommandContext in dev.sympho.modular_commands.utils.parse
Methods in dev.sympho.modular_commands.utils.parse with parameters of type CommandContextModifier and TypeMethodDescriptionRawParser.channel
(CommandContext context, Class<C> type) Creates a parser for channels with the given context.ChannelParser.getEntity
(CommandContext context, Snowflake id) EntityParser.getEntity
(CommandContext context, Snowflake id) Retrieves the entity with the given ID.MessageParser.getEntity
(CommandContext context, Snowflake id) RoleParser.getEntity
(CommandContext context, Snowflake id) UserParser.getEntity
(CommandContext context, Snowflake id) RawParser.message
(CommandContext context) Creates a parser for messages with the given context.EntityParser.parse
(CommandContext context, String raw) EntityUrlParser.parse
(CommandContext context, URL url) FunctorUrlParser.parse
(CommandContext context, URL url) RoleParser.parse
(CommandContext context, String raw) StringAdapter.parse
(CommandContext context, String raw) default Mono<TryParser.Result<R,
T>> TryParser.parse
(CommandContext context, R item) UrlParser.ChoiceBase.parse
(CommandContext context, URL url) UrlParser.parse
(CommandContext context, String raw) UrlParser.parse
(CommandContext context, URL url) Parses the given URL.UrlParser.PostParser.parse
(CommandContext context, URL url) RawParser.role
(CommandContext context) Creates a parser for roles with the given context.RawParser.user
(CommandContext context) Creates a parser for users with the given context.