Uses of Class
net.kautler.command.api.CommandContext
-
-
Uses of CommandContext in net.kautler.command.api
Methods in net.kautler.command.api that return CommandContext Modifier and Type Method Description CommandContext<M>CommandContext.Builder. build()Returns a new command context instance from the current values.<T extends M>
CommandContext<T>CommandContextTransformer. transform(CommandContext<T> commandContext, CommandContextTransformer.Phase phase)Transforms the given command context in the givenphase.Methods in net.kautler.command.api with parameters of type CommandContext Modifier and Type Method Description protected voidCommandHandler. doHandleMessage(CommandContext<M> commandContext)Handles the given command context.voidCommand. execute(CommandContext<? extends M> commandContext)Executes this command.protected voidCommandHandler. executeAsync(CommandContext<M> commandContext, Runnable commandExecutor)Executes the given command executor that is caused by the given message asynchronously.protected abstract voidCommandHandler. fireCommandNotAllowedEvent(CommandContext<M> commandContext)Fires a command not allowed CDI event asynchronously usingEvent.fireAsync(Object)that can be handled using@ObservesAsync.protected abstract voidCommandHandler. fireCommandNotFoundEvent(CommandContext<M> commandContext)Fires a command not found CDI event asynchronously usingEvent.fireAsync(Object)that can be handled using@ObservesAsync.<T extends M>
CommandContext<T>CommandContextTransformer. transform(CommandContext<T> commandContext, CommandContextTransformer.Phase phase)Transforms the given command context in the givenphase. -
Uses of CommandContext in net.kautler.command.api.event
Methods in net.kautler.command.api.event that return CommandContext Modifier and Type Method Description CommandContext<M>CommandEvent. getCommandContext()Returns the command context payload of this command event.Constructors in net.kautler.command.api.event with parameters of type CommandContext Constructor Description CommandEvent(CommandContext<M> commandContext)Constructs a new command event with the given command context as payload. -
Uses of CommandContext in net.kautler.command.api.event.javacord
Constructors in net.kautler.command.api.event.javacord with parameters of type CommandContext Constructor Description CommandNotAllowedEventJavacord(CommandContext<Message> commandContext)Constructs a new command not allowed event with the given command context as payload.CommandNotAllowedEventJavacordSlash(CommandContext<SlashCommandInteraction> commandContext)Constructs a new command not allowed event with the given command context as payload.CommandNotFoundEventJavacord(CommandContext<Message> commandContext)Constructs a new command not found event with the given command context as payload.CommandNotFoundEventJavacordSlash(CommandContext<SlashCommandInteraction> commandContext)Constructs a new command not found event with the given command context as payload. -
Uses of CommandContext in net.kautler.command.api.event.jda
Constructors in net.kautler.command.api.event.jda with parameters of type CommandContext Constructor Description CommandNotAllowedEventJda(CommandContext<Message> commandContext)Constructs a new command not allowed event with the given command context as payload.CommandNotFoundEventJda(CommandContext<Message> commandContext)Constructs a new command not found event with the given command context as payload. -
Uses of CommandContext in net.kautler.command.api.parameter
Methods in net.kautler.command.api.parameter with parameters of type CommandContext Modifier and Type Method Description RParameterConverter. convert(String parameter, String type, CommandContext<? extends M> commandContext)Converts the given parameter to the result type.<V> Parameters<V>ParameterParser. parse(CommandContext<?> commandContext)Returns the parsed parameters for the usage of the command that was triggered by the given command context with an optional implicit downcast for the values. -
Uses of CommandContext in net.kautler.command.api.prefix.javacord
Methods in net.kautler.command.api.prefix.javacord that return CommandContext Modifier and Type Method Description <T extends Message>
CommandContext<T>MentionPrefixTransformerJavacord. transform(CommandContext<T> commandContext, CommandContextTransformer.Phase phase)Methods in net.kautler.command.api.prefix.javacord with parameters of type CommandContext Modifier and Type Method Description <T extends Message>
CommandContext<T>MentionPrefixTransformerJavacord. transform(CommandContext<T> commandContext, CommandContextTransformer.Phase phase) -
Uses of CommandContext in net.kautler.command.api.prefix.jda
Methods in net.kautler.command.api.prefix.jda that return CommandContext Modifier and Type Method Description <T extends Message>
CommandContext<T>MentionPrefixTransformerJda. transform(CommandContext<T> commandContext, CommandContextTransformer.Phase phase)Methods in net.kautler.command.api.prefix.jda with parameters of type CommandContext Modifier and Type Method Description <T extends Message>
CommandContext<T>MentionPrefixTransformerJda. transform(CommandContext<T> commandContext, CommandContextTransformer.Phase phase) -
Uses of CommandContext in net.kautler.command.api.restriction
Methods in net.kautler.command.api.restriction with parameters of type CommandContext Modifier and Type Method Description booleanAllOf. allowCommand(CommandContext<? extends M> commandContext)booleanAnyOf. allowCommand(CommandContext<? extends M> commandContext)booleanEveryone. allowCommand(CommandContext<?> commandContext)booleanNoneOf. allowCommand(CommandContext<? extends M> commandContext)booleanRestriction. allowCommand(CommandContext<? extends M> commandContext)Returns whether a command caused by the given command context should be allowed by this restriction or not.<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. -
Uses of CommandContext in net.kautler.command.api.restriction.javacord
Methods in net.kautler.command.api.restriction.javacord with parameters of type CommandContext Modifier and Type Method Description booleanBotOwnerJavacord. allowCommand(CommandContext<? extends Message> commandContext)booleanChannelJavacord. allowCommand(CommandContext<? extends Message> commandContext)booleanNsfwChannelJavacord. allowCommand(CommandContext<? extends Message> commandContext)booleanPrivateMessageJavacord. allowCommand(CommandContext<? extends Message> commandContext)booleanRegularUserJavacord. allowCommand(CommandContext<? extends Message> commandContext)booleanRoleJavacord. allowCommand(CommandContext<? extends Message> commandContext)booleanServerJavacord. allowCommand(CommandContext<? extends Message> commandContext)booleanServerManagerJavacord. allowCommand(CommandContext<? extends Message> commandContext)booleanServerOwnerJavacord. allowCommand(CommandContext<? extends Message> commandContext)booleanUserJavacord. allowCommand(CommandContext<? extends Message> commandContext) -
Uses of CommandContext in net.kautler.command.api.restriction.javacord.slash
Methods in net.kautler.command.api.restriction.javacord.slash with parameters of type CommandContext Modifier and Type Method Description booleanBotOwnerJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)booleanChannelJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)booleanNsfwChannelJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)booleanPrivateMessageJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)booleanRoleJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)booleanServerJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)booleanServerManagerJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)booleanServerOwnerJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)booleanUserJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext) -
Uses of CommandContext in net.kautler.command.api.restriction.jda
Methods in net.kautler.command.api.restriction.jda with parameters of type CommandContext Modifier and Type Method Description booleanBotOwnerJda. allowCommand(CommandContext<? extends Message> commandContext)booleanChannelJda. allowCommand(CommandContext<? extends Message> commandContext)booleanGuildJda. allowCommand(CommandContext<? extends Message> commandContext)booleanGuildOwnerJda. allowCommand(CommandContext<? extends Message> commandContext)booleanNsfwChannelJda. allowCommand(CommandContext<? extends Message> commandContext)booleanPrivateMessageJda. allowCommand(CommandContext<? extends Message> commandContext)booleanRegularUserJda. allowCommand(CommandContext<? extends Message> commandContext)booleanRoleJda. allowCommand(CommandContext<? extends Message> commandContext)booleanServerManagerJda. allowCommand(CommandContext<? extends Message> commandContext)booleanUserJda. allowCommand(CommandContext<? extends Message> commandContext)
-