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.
Parsers for Discord entities.
-
Uses of CommandContext in dev.sympho.modular_commands.api.command.context
Subinterfaces of CommandContext in dev.sympho.modular_commands.api.command.contextModifier and TypeInterfaceDescriptioninterfaceThe execution context of an command invoked through an interaction (application command).interfaceThe execution context of an command invoked through a message.interfaceThe 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 TypeInterfaceDescriptioninterfaceInvocationHandler<C extends @NonNull CommandContext>A function that handles the execution of a command.interfaceResultHandler<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.CONTINUEAn 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 theinvocationrecord component.TextHandlers.invocation()List<? extends ResultHandler<CommandContext>>TextHandlers.Impl.result()Returns the value of theresultrecord 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 TextHandlersHandlers.text(InvocationHandler<CommandContext> invocation) Creates a handler set with the given handlers, with support only for text-based commands, and no result handlers.static TextHandlersHandlers.text(InvocationHandler<CommandContext> invocation, ResultHandler<CommandContext>... result) Creates a handler set with the given handlers, with support for text-based commands.static TextHandlersHandlers.text(InvocationHandler<CommandContext> invocation, List<? extends ResultHandler<CommandContext>> result) Creates a handler set with the given handlers, with support for text-based commands.static TextHandlersHandlers.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 aImplrecord class.Impl(InvocationHandler<CommandContext> invocation, List<? extends ResultHandler<CommandContext>> result) Creates an instance of aImplrecord 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.HttpClientAttachmentDataParser.Resources.HttpClientRetriever.getClient(CommandContext context) Determines the HTTP client to use with the given execution context.default reactor.netty.http.client.HttpClientAttachmentDataParser.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 TypeInterfaceDescriptioninterfaceA command context that is instrumented for use with metrics and tracing tooling.interfaceA 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.DEFAULTThe 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 voidBaseHandler.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 classContext 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.RawParser.channelId(CommandContext context) Creates a parser for channel IDs with the given context.RawParser.message(CommandContext context) Creates a parser for messages with the given context.RawParser.messageId(CommandContext context) Creates a parser for message IDs with the given context.FunctorUrlParser.parse(CommandContext context, URL url) 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.roleId(CommandContext context) Creates a parser for role IDs with the given context.RawParser.user(CommandContext context) Creates a parser for users with the given context.RawParser.userId(CommandContext context) Creates a parser for user IDs with the given context. -
Uses of CommandContext in dev.sympho.modular_commands.utils.parse.entity
Methods in dev.sympho.modular_commands.utils.parse.entity with parameters of type CommandContextModifier and TypeMethodDescriptionstatic SnowflakeEntityRef.RoleRef.defaultGuild(CommandContext context) Obtains the default guild based on the context.static SnowflakeEntityRef.RoleRef.everyoneId(CommandContext context) Obtains the ID for the@everyonerole.protected EntityRef.ChannelRef<C>ChannelRefMentionParser.makeRef(CommandContext context, Snowflake id) protected EntityRef.ChannelRef<C>ChannelRefParser.makeRef(CommandContext context, Snowflake id) protected abstract REntityRefMentionParser.makeRef(CommandContext context, Snowflake id) Creates the reference.protected abstract REntityRefParser.makeRef(CommandContext context, Snowflake id) Creates the reference.protected EntityRef.MessageRefMessageRefParser.makeRef(CommandContext context, Snowflake id) protected EntityRef.RoleRefRoleRefMentionParser.makeRef(CommandContext context, Snowflake id) protected EntityRef.RoleRefRoleRefParser.makeRef(CommandContext context, Snowflake id) protected EntityRef.UserRefUserRefMentionParser.makeRef(CommandContext context, Snowflake id) protected EntityRef.UserRefUserRefParser.makeRef(CommandContext context, Snowflake id) EntityMentionParser.parse(CommandContext context, String raw) EntityParser.parse(CommandContext context, String raw) EntityRefMentionParser.parse(CommandContext context, String raw) EntityRefParser.parse(CommandContext context, String raw) EntityRefUrlParser.parse(CommandContext context, URL url) EntityUrlParser.parse(CommandContext context, URL url) EntityRefMentionParser.parseRef(CommandContext context, String raw) Parses the given string.EntityRefParser.parseRef(CommandContext context, String raw) Parses the given string.RoleRefMentionParser.parseRef(CommandContext context, String raw) RoleRefParser.parseRef(CommandContext context, String raw) Constructors in dev.sympho.modular_commands.utils.parse.entity with parameters of type CommandContextModifierConstructorDescriptionMessageRef(CommandContext context, Snowflake id) Creates a new instance when only the ID is specified.RoleRef(CommandContext context, Snowflake id) Creates a new instance when only the ID is specified.