Class CommandNotFoundEventJavacord
- java.lang.Object
-
- net.kautler.command.api.event.MessageEvent<Message>
-
- net.kautler.command.api.event.javacord.CommandNotFoundEventJavacord
-
public class CommandNotFoundEventJavacord extends MessageEvent<Message>
An event that is sent asynchronously via the CDI event mechanism if a command was not found for a message that started with the configured command prefix. It can be handled using@ObservesAsync.- See Also:
@ObservesAsync,PrefixProvider
-
-
Constructor Summary
Constructors Constructor Description CommandNotFoundEventJavacord(Message message, String prefix, String usedAlias)Constructs a new command not found event with the given Javacord message, prefix, and used alias as payload.
-
-
-
Constructor Detail
-
CommandNotFoundEventJavacord
public CommandNotFoundEventJavacord(Message message, String prefix, String usedAlias)
Constructs a new command not found event with the given Javacord message, prefix, and used alias as payload.- Parameters:
message- the Javacord message that contains the command that was not foundprefix- the command prefix that was used to trigger the commandusedAlias- the alias that was used to trigger the command
-
-