Class RegularUserJda
- java.lang.Object
-
- net.kautler.command.api.restriction.jda.RegularUserJda
-
- All Implemented Interfaces:
Restriction<Message>
@ApplicationScoped public class RegularUserJda extends Object implements Restriction<Message>
A restriction that allows a command for regular users and is evaluated by the JDA command handler. Regular users means no bots, and no webhooks.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowCommand(Message message)
Returns whether a command caused by the given message should be allowed by this restriction or not.
-
-
-
Method Detail
-
allowCommand
public boolean allowCommand(Message message)
Description copied from interface:Restriction
Returns whether a command caused by the given message should be allowed by this restriction or not.- Specified by:
allowCommand
in interfaceRestriction<Message>
- Parameters:
message
- the message that caused the command to check allowance for- Returns:
- whether a command caused by the given message should be allowed by this restriction or not
-
-