Package io.manebot.command
Interface CommandDispatcher
-
public interface CommandDispatcher
-
-
Method Summary
Modifier and Type Method Description voidexecute(CommandMessage commandMessage)Dispatches a command.java.util.concurrent.Future<java.lang.Boolean>executeAsync(CommandMessage commandMessage)Dispatches a command asynchronously.CommandShellgetShell(User user)Gets a command shell for a specific user.
-
-
-
Method Detail
-
getShell
CommandShell getShell(User user)
Gets a command shell for a specific user.- Parameters:
user- user to get a shell for.- Returns:
- command shell instance.
-
execute
void execute(CommandMessage commandMessage) throws CommandExecutionException
Dispatches a command.- Parameters:
commandMessage- Command message to execute.- Throws:
CommandExecutionException
-
executeAsync
java.util.concurrent.Future<java.lang.Boolean> executeAsync(CommandMessage commandMessage)
Dispatches a command asynchronously.- Parameters:
commandMessage- Command message to execute.- Returns:
- Future instance to track execution.
-
-