Uses of Interface
net.kautler.command.api.restriction.Restriction
-
-
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.Method parameters in net.kautler.command.api.restriction with type arguments of type Restriction Modifier and Type Method Description RestrictionChainElement
RestrictionChainElement. and(Class<? extends Restriction<?>> other)
Returns a restriction chain element that combines this restriction chain element with the given restriction class using boolean short-circuit "and" logic.<M> boolean
RestrictionChainElement. isCommandAllowed(CommandContext<M> commandContext, Map<Class<?>,Restriction<? super M>> availableRestrictions)
Returns whether the command triggered by the given command context should be allowed or not.RestrictionChainElement
RestrictionChainElement. or(Class<? extends Restriction<?>> other)
Returns a restriction chain element that combines this restriction chain element with the given restriction class using boolean short-circuit "or" logic.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. -
Uses of Restriction in net.kautler.command.api.restriction.javacord.slash
Classes in net.kautler.command.api.restriction.javacord.slash that implement Restriction Modifier and Type Class Description class
BotOwnerJavacordSlash
A restriction that allows a command for the bot owner and is evaluated by the Javacord slash command handler.class
ChannelJavacordSlash
A restriction that allows a command in certain channels and is evaluated by the Javacord slash command handler.class
NsfwChannelJavacordSlash
A restriction that allows a command for NSFW channels and is evaluated by the Javacord slash command handler.class
PrivateMessageJavacordSlash
A restriction that allows a command for slash commands in private messages and is evaluated by the Javacord slash command handler.class
RoleJavacordSlash
A restriction that allows a command for certain roles and is evaluated by the Javacord slash command handler.class
ServerJavacordSlash
A restriction that allows a command in certain servers and is evaluated by the Javacord slash command handler.class
ServerManagerJavacordSlash
A restriction that allows a command for server managers and is evaluated by the Javacord slash command handler.class
ServerOwnerJavacordSlash
A restriction that allows a command for the server owner and is evaluated by the Javacord slash command handler.class
UserJavacordSlash
A restriction that allows a command for certain users and is evaluated by the Javacord slash command handler. -
Uses of Restriction in net.kautler.command.api.restriction.jda
Classes in net.kautler.command.api.restriction.jda that implement Restriction Modifier and Type Class Description class
BotOwnerJda
A restriction that allows a command for the bot owner and is evaluated by the JDA command handler.class
ChannelJda
A restriction that allows a command in certain channels and is evaluated by the JDA command handler.class
GuildJda
A restriction that allows a command in certain guilds and is evaluated by the JDA command handler.class
GuildOwnerJda
A restriction that allows a command for the guild owner and is evaluated by the JDA command handler.class
NsfwChannelJda
A restriction that allows a command for NSFW channels and is evaluated by the JDA command handler.class
PrivateMessageJda
A restriction that allows a command for private messages and is evaluated by the JDA command handler.class
RegularUserJda
A restriction that allows a command for regular users and is evaluated by the JDA command handler.class
RoleJda
A restriction that allows a command for certain roles and is evaluated by the JDA command handler.class
ServerManagerJda
A restriction that allows a command for server managers and is evaluated by the JDA command handler.class
UserJda
A restriction that allows a command for certain users and is evaluated by the JDA command handler.
-