Class CommandNotAllowedEventJavacord


  • public class CommandNotAllowedEventJavacord
    extends MessageEvent<Message>
    An event that is sent asynchronously via the CDI event mechanism if a command was not allowed due to some configured restriction by the Javacord command handler. It can be handled using @ObservesAsync.
    See Also:
    @ObservesAsync, @RestrictedTo
    • Constructor Detail

      • CommandNotAllowedEventJavacord

        public CommandNotAllowedEventJavacord​(Message message,
                                              String prefix,
                                              String usedAlias)
        Constructs a new command not allowed event with the given Javacord message, prefix, and used alias as payload.
        Parameters:
        message - the Javacord message that contains the command but was not allowed
        prefix - the command prefix that was used to trigger the command
        usedAlias - the alias that was used to trigger the command