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 voidCommandHandler. 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 classAllOf<M>A restriction that checks multiple other restrictions that must all allow a command.classAnyOf<M>A restriction that checks multiple other restrictions one of which must allow a command.classEveryoneA restriction that allows a command for everyone.classNoneOf<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 RestrictionChainElementRestrictionChainElement. 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> booleanRestrictionChainElement. 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.RestrictionChainElementRestrictionChainElement. 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 classBotOwnerJavacordA restriction that allows a command for the bot owner and is evaluated by the Javacord command handler.classChannelJavacordA restriction that allows a command in certain channels and is evaluated by the Javacord command handler.classNsfwChannelJavacordA restriction that allows a command for NSFW channels and is evaluated by the Javacord command handler.classPrivateMessageJavacordA restriction that allows a command for private messages and is evaluated by the Javacord command handler.classRegularUserJavacordA restriction that allows a command for regular users and is evaluated by the Javacord command handler.classRoleJavacordA restriction that allows a command for certain roles and is evaluated by the Javacord command handler.classServerJavacordA restriction that allows a command in certain servers and is evaluated by the Javacord command handler.classServerManagerJavacordA restriction that allows a command for server managers and is evaluated by the Javacord command handler.classServerOwnerJavacordA restriction that allows a command for the server owner and is evaluated by the Javacord command handler.classUserJavacordA 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 classBotOwnerJavacordSlashA restriction that allows a command for the bot owner and is evaluated by the Javacord slash command handler.classChannelJavacordSlashA restriction that allows a command in certain channels and is evaluated by the Javacord slash command handler.classNsfwChannelJavacordSlashA restriction that allows a command for NSFW channels and is evaluated by the Javacord slash command handler.classPrivateMessageJavacordSlashA restriction that allows a command for slash commands in private messages and is evaluated by the Javacord slash command handler.classRoleJavacordSlashA restriction that allows a command for certain roles and is evaluated by the Javacord slash command handler.classServerJavacordSlashA restriction that allows a command in certain servers and is evaluated by the Javacord slash command handler.classServerManagerJavacordSlashA restriction that allows a command for server managers and is evaluated by the Javacord slash command handler.classServerOwnerJavacordSlashA restriction that allows a command for the server owner and is evaluated by the Javacord slash command handler.classUserJavacordSlashA 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 classBotOwnerJdaA restriction that allows a command for the bot owner and is evaluated by the JDA command handler.classChannelJdaA restriction that allows a command in certain channels and is evaluated by the JDA command handler.classGuildJdaA restriction that allows a command in certain guilds and is evaluated by the JDA command handler.classGuildOwnerJdaA restriction that allows a command for the guild owner and is evaluated by the JDA command handler.classNsfwChannelJdaA restriction that allows a command for NSFW channels and is evaluated by the JDA command handler.classPrivateMessageJdaA restriction that allows a command for private messages and is evaluated by the JDA command handler.classRegularUserJdaA restriction that allows a command for regular users and is evaluated by the JDA command handler.classRoleJdaA restriction that allows a command for certain roles and is evaluated by the JDA command handler.classServerManagerJdaA restriction that allows a command for server managers and is evaluated by the JDA command handler.classUserJdaA restriction that allows a command for certain users and is evaluated by the JDA command handler.
-