Interface Restriction<M>
-
- Type Parameters:
M
- the class of the messages for which this restriction can check allowance
- All Known Implementing Classes:
AllOf
,AnyOf
,BotOwnerJavacord
,ChannelJavacord
,Everyone
,NoneOf
,NsfwChannelJavacord
,PrivateMessageJavacord
,RegularUserJavacord
,RoleJavacord
,ServerJavacord
,ServerManagerJavacord
,ServerOwnerJavacord
,UserJavacord
public interface Restriction<M>
A restriction that checks allowance for usage of a command that was caused by a given message.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
allowCommand(M message)
Returns whether a command caused by the given message should be allowed by this restriction or not.
-
-
-
Method Detail
-
allowCommand
boolean allowCommand(M message)
Returns whether a command caused by the given message should be allowed by this restriction or not.- 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
-
-