Class NsfwChannelJavacord
- java.lang.Object
-
- net.kautler.command.api.restriction.javacord.NsfwChannelJavacord
-
- All Implemented Interfaces:
Restriction<Message>
@ApplicationScoped public class NsfwChannelJavacord extends Object implements Restriction<Message>
A restriction that allows a command for NSFW channels and is evaluated by the Javacord command handler. If a message is not sent on a server, this restriction always denies.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowCommand(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:RestrictionReturns whether a command caused by the given message should be allowed by this restriction or not.- Specified by:
allowCommandin 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
-
-