Class CommandNotAllowedEventJavacord
- java.lang.Object
-
- net.kautler.command.api.event.MessageEvent<Message>
-
- net.kautler.command.api.event.javacord.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 Summary
Constructors Constructor Description 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.
-
-
-
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 allowedprefix- the command prefix that was used to trigger the commandusedAlias- the alias that was used to trigger the command
-
-