Class 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 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 found
        prefix - the command prefix that was used to trigger the command
        usedAlias - the alias that was used to trigger the command