A C D E G H O P R
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractCommandDispatcher - Class in discord4j.command.util
-
An utility abstract implementation of
CommandDispatcher
. - AbstractCommandDispatcher() - Constructor for class discord4j.command.util.AbstractCommandDispatcher
- addProvider(CommandProvider<?>) - Method in class discord4j.command.CommandBootstrapper
-
Called to add a command provider dynamically.
- addProviders(Collection<? extends CommandProvider<?>>) - Method in class discord4j.command.CommandBootstrapper
-
Called to add command providers dynamically.
- attach(DiscordClient) - Method in class discord4j.command.CommandBootstrapper
-
Attaches this
CommandBootstrapper
instance to theMessageCreateEvent
of the passed in client.
C
- Command<T> - Interface in discord4j.command
-
Very simple command abstraction.
- CommandBootstrapper - Class in discord4j.command
-
The (thread-safe) entry point for actually using command.
- CommandBootstrapper(CommandDispatcher) - Constructor for class discord4j.command.CommandBootstrapper
-
Constructs the message listener for command.
- CommandBootstrapper(CommandDispatcher, CommandErrorHandler) - Constructor for class discord4j.command.CommandBootstrapper
-
Constructs the message listener for command.
- CommandDispatcher - Interface in discord4j.command
-
This represents a command dispatcher.
- CommandErrorHandler - Interface in discord4j.command
-
An interface called when an error is encountered.
- CommandException - Exception in discord4j.command.util
-
An abstract class for propagating non-fatal, user-facing, command-caused errors.
- CommandException(String) - Constructor for exception discord4j.command.util.CommandException
- CommandProvider<T> - Interface in discord4j.command
-
This represents a generic command provider.
D
- discord4j.command - package discord4j.command
-
This package contains a set of classes designed to allow for extreme customizability and interoperability when building command or command systems.
- discord4j.command.util - package discord4j.command.util
- dispatch(MessageCreateEvent, Set<CommandProvider<?>>, CommandErrorHandler) - Method in interface discord4j.command.CommandDispatcher
-
Called to handle the logic of invoking a command based on an event.
- dispatch(MessageCreateEvent, Set<CommandProvider<?>>, CommandErrorHandler) - Method in class discord4j.command.util.AbstractCommandDispatcher
E
- execute(MessageCreateEvent, T) - Method in interface discord4j.command.Command
-
Called to execute this command.
G
- getCommand() - Method in class discord4j.command.ProviderContext
-
Gets the command for possible execution.
- getContext() - Method in class discord4j.command.ProviderContext
-
Gets the context for the command's execution, if present.
- getDispatcher() - Method in class discord4j.command.CommandBootstrapper
-
Gets the
CommandDispatcher
being currently used. - getErrorHandler() - Method in class discord4j.command.CommandBootstrapper
-
Gets the
CommandErrorHandler
being currently used. - getPrefixes(MessageCreateEvent) - Method in class discord4j.command.util.AbstractCommandDispatcher
-
Requests to retrieve the prefixes for the supplied event.
- getProviders() - Method in class discord4j.command.CommandBootstrapper
-
Gets the command providers registered with this dispatcher.
H
- handle(MessageCreateEvent, Throwable) - Method in interface discord4j.command.CommandErrorHandler
-
Called when an error is encountered.
O
- of(Command<T>) - Static method in class discord4j.command.ProviderContext
-
Constructs a
ProviderContext
. - of(Command<T>, T) - Static method in class discord4j.command.ProviderContext
-
Constructs a
ProviderContext
.
P
- provide(MessageCreateEvent, String, int, int) - Method in interface discord4j.command.CommandProvider
-
This is called to provide a matching command based on the event context.
- ProviderContext<T> - Class in discord4j.command
-
Context from a
CommandProvider
for a command's execution.
R
- removeProvider(CommandProvider<?>) - Method in class discord4j.command.CommandBootstrapper
-
Called to drop a command provider dynamically.
- removeProviders(Collection<? extends CommandProvider<?>>) - Method in class discord4j.command.CommandBootstrapper
-
Called to remove command providers dynamically.
- response() - Method in exception discord4j.command.util.CommandException
-
Returns a human-readable error message for the user who caused this error to read.
All Classes All Packages