Uses of Interface
net.kautler.command.api.restriction.Restriction
-
Packages that use Restriction Package Description net.kautler.command.api net.kautler.command.api.annotation net.kautler.command.api.restriction net.kautler.command.api.restriction.javacord -
-
Uses of Restriction in net.kautler.command.api
Method parameters in net.kautler.command.api with type arguments of type Restriction Modifier and Type Method Description protected void
CommandHandler. doSetAvailableRestrictions(Instance<Restriction<? super M>> availableRestrictions)
Sets the available restrictions for this command handler. -
Uses of Restriction in net.kautler.command.api.annotation
Methods in net.kautler.command.api.annotation that return types with arguments of type Restriction Modifier and Type Method Description Class<? extends Restriction<?>>
value()
Returns the restriction class for the annotated command. -
Uses of Restriction in net.kautler.command.api.restriction
Classes in net.kautler.command.api.restriction that implement Restriction Modifier and Type Class Description class
AllOf<M>
A restriction that checks multiple other restrictions that must all allow a command.class
AnyOf<M>
A restriction that checks multiple other restrictions one of which must allow a command.class
Everyone
A restriction that allows a command for everyone.class
NoneOf<M>
A restriction that checks multiple other restrictions none of which may allow a command.Constructors in net.kautler.command.api.restriction with parameters of type Restriction Constructor Description AllOf(Restriction<? super M>... restrictions)
Constructs a new all-of restriction.AnyOf(Restriction<? super M>... restrictions)
Constructs a new any-of restriction.NoneOf(Restriction<? super M>... restrictions)
Constructs a new none-of restriction.Constructor parameters in net.kautler.command.api.restriction with type arguments of type Restriction Constructor Description RestrictionChainElement(Class<? extends Restriction<?>> restriction)
Constructs a new restriction chain element for the given restriction class. -
Uses of Restriction in net.kautler.command.api.restriction.javacord
Classes in net.kautler.command.api.restriction.javacord that implement Restriction Modifier and Type Class Description class
BotOwnerJavacord
A restriction that allows a command for the bot owner and is evaluated by the Javacord command handler.class
ChannelJavacord
A restriction that allows a command in certain channels and is evaluated by the Javacord command handler.class
NsfwChannelJavacord
A restriction that allows a command for NSFW channels and is evaluated by the Javacord command handler.class
PrivateMessageJavacord
A restriction that allows a command for private messages and is evaluated by the Javacord command handler.class
RegularUserJavacord
A restriction that allows a command for regular users and is evaluated by the Javacord command handler.class
RoleJavacord
A restriction that allows a command for certain roles and is evaluated by the Javacord command handler.class
ServerJavacord
A restriction that allows a command in certain servers and is evaluated by the Javacord command handler.class
ServerManagerJavacord
A restriction that allows a command for server managers and is evaluated by the Javacord command handler.class
ServerOwnerJavacord
A restriction that allows a command for the server owner and is evaluated by the Javacord command handler.class
UserJavacord
A restriction that allows a command for certain users and is evaluated by the Javacord command handler.
-