Package kboyle.oktane.core
Class CommandContext
java.lang.Object
kboyle.oktane.core.CommandContext
- Direct Known Subclasses:
BenchmarkContext
,DiscordCommandContext
,ExampleCommandContext
Represents a POJO that will be used for passing state in commands.
-
Constructor Details
-
CommandContext
-
CommandContext
public CommandContext()
-
-
Method Details
-
beanProvider
- Returns:
- Gets the
BeanProvider
passed in.
-
command
- Returns:
- Gets current
Command
being executed, this will benull
outside of a command method.
-
input
- Returns:
- The input used to trigger the current execution.
-
prefix
- Returns:
- The prefix used for the current execution.
-
currentArgument
- Returns:
- The current argument having preconditions run against it.
-
currentParameter
- Returns:
- The current parameter having preconditions run against it.
-