Uses of Interface
com.github.alex1304.ultimategdbot.api.Command
-
Packages that use Command Package Description com.github.alex1304.ultimategdbot.api com.github.alex1304.ultimategdbot.api.utils com.github.alex1304.ultimategdbot.api.utils.reply -
-
Uses of Command in com.github.alex1304.ultimategdbot.api
Methods in com.github.alex1304.ultimategdbot.api that return Command Modifier and Type Method Description static Command
Command. forkedFrom(Command other, java.util.function.Function<Context,reactor.core.publisher.Mono<Void>> executeFunc)
Creates a new Command instance which action is the provided function, and other attributes (alias, error actions, allowed channels, permission level, etc) are inherited from the given base command.Command
Context. getCommand()
Gets the command that created this context.Command
InvalidSyntaxException. getCommand()
Gets the command involved in the syntax errorMethods in com.github.alex1304.ultimategdbot.api that return types with arguments of type Command Modifier and Type Method Description Set<Command>
CommandKernel. getCommands()
Gets an unmodifiable set of all commands available in the kernel.Set<Command>
Plugin. getProvidedCommands()
Gets the set of commands that this plugin provides.default Set<Command>
Command. getSubcommands()
Gets the subcommands.Optional<reactor.util.function.Tuple2<Command,List<String>>>
CommandKernel. parseCommandLine(String commandLine)
Reads the command line and retrieves the corresponding Command instance.Optional<reactor.util.function.Tuple2<Command,List<String>>>
CommandKernel. parseCommandLine(List<String> commandLine)
Reads the command line and retrieves the corresponding Command instance.Methods in com.github.alex1304.ultimategdbot.api with parameters of type Command Modifier and Type Method Description static Command
Command. forkedFrom(Command other, java.util.function.Function<Context,reactor.core.publisher.Mono<Void>> executeFunc)
Creates a new Command instance which action is the provided function, and other attributes (alias, error actions, allowed channels, permission level, etc) are inherited from the given base command.reactor.core.publisher.Mono<Void>
CommandKernel. invokeCommand(Command cmd, Context ctx)
Invokes a command with the specified context.Constructors in com.github.alex1304.ultimategdbot.api with parameters of type Command Constructor Description Context(Command command, discord4j.core.event.domain.message.MessageCreateEvent event, List<String> args, Bot bot, String prefixUsed)
InvalidSyntaxException(Command cmd)
-
Uses of Command in com.github.alex1304.ultimategdbot.api.utils
Methods in com.github.alex1304.ultimategdbot.api.utils with parameters of type Command Modifier and Type Method Description static reactor.core.publisher.Mono<String>
BotUtils. generateDefaultDocumentation(Command cmd, Context ctx, String cmdName)
Generates a default documentation for the command in a String format. -
Uses of Command in com.github.alex1304.ultimategdbot.api.utils.reply
Constructors in com.github.alex1304.ultimategdbot.api.utils.reply with parameters of type Command Constructor Description PaginatedReplyMenuBuilder(Command cmd, Context ctx, boolean deleteOnReply, boolean deleteOnTimeout, int maxPageLength)
-