Class ServerManagerJda
- java.lang.Object
-
- net.kautler.command.api.restriction.jda.ServerManagerJda
-
- All Implemented Interfaces:
Restriction<Message>
@ApplicationScoped public class ServerManagerJda extends Object implements Restriction<Message>
A restriction that allows a command for server managers and is evaluated by the JDA command handler. If a message is not sent on a guild, this restriction always denies.
-
-
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
-
-