Class CommandNotFoundEventJda


  • public class CommandNotFoundEventJda
    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 Detail

      • CommandNotFoundEventJda

        public CommandNotFoundEventJda​(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