Class CommandNotFoundEventJavacord
- java.lang.Object
-
- net.kautler.command.api.event.CommandEvent<Message>
-
- net.kautler.command.api.event.javacord.CommandNotFoundEventJavacord
-
public class CommandNotFoundEventJavacord extends CommandEvent<Message>
An event that is sent asynchronously via the CDI event mechanism if a command was not found for a message. This event is only sent for messages that could have been a command like for example they started with the correct prefix but the alias did not match any available command. It can be handled using@ObservesAsync
.- See Also:
@ObservesAsync
-
-
Constructor Summary
Constructors Constructor Description CommandNotFoundEventJavacord(CommandContext<Message> commandContext)
Constructs a new command not found event with the given command context as payload.
-
-
-
Constructor Detail
-
CommandNotFoundEventJavacord
public CommandNotFoundEventJavacord(CommandContext<Message> commandContext)
Constructs a new command not found event with the given command context as payload.- Parameters:
commandContext
- the command context, usually populated according to current phase
-
-