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 void
CommandHandler. doHandleMessage(CommandContext<M> commandContext)
Handles the given command context.void
Command. execute(CommandContext<? extends M> commandContext)
Executes this command.protected void
CommandHandler. executeAsync(CommandContext<M> commandContext, Runnable commandExecutor)
Executes the given command executor that is caused by the given message asynchronously.protected abstract void
CommandHandler. fireCommandNotAllowedEvent(CommandContext<M> commandContext)
Fires a command not allowed CDI event asynchronously usingEvent.fireAsync(Object)
that can be handled using@ObservesAsync
.protected abstract void
CommandHandler. 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 R
ParameterConverter. 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 boolean
AllOf. allowCommand(CommandContext<? extends M> commandContext)
boolean
AnyOf. allowCommand(CommandContext<? extends M> commandContext)
boolean
Everyone. allowCommand(CommandContext<?> commandContext)
boolean
NoneOf. allowCommand(CommandContext<? extends M> commandContext)
boolean
Restriction. allowCommand(CommandContext<? extends M> commandContext)
Returns whether a command caused by the given command context should be allowed by this restriction or not.<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. -
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 boolean
BotOwnerJavacord. allowCommand(CommandContext<? extends Message> commandContext)
boolean
ChannelJavacord. allowCommand(CommandContext<? extends Message> commandContext)
boolean
NsfwChannelJavacord. allowCommand(CommandContext<? extends Message> commandContext)
boolean
PrivateMessageJavacord. allowCommand(CommandContext<? extends Message> commandContext)
boolean
RegularUserJavacord. allowCommand(CommandContext<? extends Message> commandContext)
boolean
RoleJavacord. allowCommand(CommandContext<? extends Message> commandContext)
boolean
ServerJavacord. allowCommand(CommandContext<? extends Message> commandContext)
boolean
ServerManagerJavacord. allowCommand(CommandContext<? extends Message> commandContext)
boolean
ServerOwnerJavacord. allowCommand(CommandContext<? extends Message> commandContext)
boolean
UserJavacord. 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 boolean
BotOwnerJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)
boolean
ChannelJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)
boolean
NsfwChannelJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)
boolean
PrivateMessageJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)
boolean
RoleJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)
boolean
ServerJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)
boolean
ServerManagerJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)
boolean
ServerOwnerJavacordSlash. allowCommand(CommandContext<? extends SlashCommandInteraction> commandContext)
boolean
UserJavacordSlash. 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 boolean
BotOwnerJda. allowCommand(CommandContext<? extends Message> commandContext)
boolean
ChannelJda. allowCommand(CommandContext<? extends Message> commandContext)
boolean
GuildJda. allowCommand(CommandContext<? extends Message> commandContext)
boolean
GuildOwnerJda. allowCommand(CommandContext<? extends Message> commandContext)
boolean
NsfwChannelJda. allowCommand(CommandContext<? extends Message> commandContext)
boolean
PrivateMessageJda. allowCommand(CommandContext<? extends Message> commandContext)
boolean
RegularUserJda. allowCommand(CommandContext<? extends Message> commandContext)
boolean
RoleJda. allowCommand(CommandContext<? extends Message> commandContext)
boolean
ServerManagerJda. allowCommand(CommandContext<? extends Message> commandContext)
boolean
UserJda. allowCommand(CommandContext<? extends Message> commandContext)
-