Skip navigation links
A B C D E F G H I J L M N O P R S T U V W 

A

autoCompleteEvent() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Returns this event as a CommandAutoCompleteInteractionEvent if it is from a slash command, otherwise throws a IllegalArgumentException.
autoCompleteEventOrNull() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Returns this event as a CommandAutoCompleteInteractionEvent if it is from an auto-complete events, otherwise returns null.

B

builder() - Static method in class revxrsal.commands.jda.JDALamp
 

C

category() - Static method in class revxrsal.commands.jda.parameters.SnowflakeParameterTypes
Returns the ParameterType for parsing Category objects.
channel() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Returns the MessageChannel that this interaction ocurred in
channel() - Method in exception revxrsal.commands.jda.exception.WrongChannelTypeException
Returns the channel supplied by the user
channelType(Class<? extends Channel>) - Static method in class revxrsal.commands.jda.JDAUtils
Returns the ChannelType that corresponds to the given channel interface
Choices - Annotation Type in revxrsal.commands.jda.annotation
Defines up to 25 predefined choices for this option.
commandEvent() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Returns this event as a SlashCommandInteractionEvent if it is from a slash command, otherwise throws a IllegalArgumentException.
commandEventOrNull() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Returns this event as a SlashCommandInteractionEvent if it is from a slash command, otherwise returns null.
CommandPermission - Annotation Type in revxrsal.commands.jda.annotation
Annotation for specifying the required Permission for JDA slash commands.
commands() - Method in class revxrsal.commands.jda.slash.JDAParser
 
create(SlashCommandInteractionEvent, Lamp<A>) - Method in interface revxrsal.commands.jda.actor.SlashActorFactory
Creates a new actor based on a user executing a slash command.
create(CommandAutoCompleteInteractionEvent, Lamp<A>) - Method in interface revxrsal.commands.jda.actor.SlashActorFactory
Creates a new actor based on a user auto-completing a slash command.

D

defaultFactory() - Static method in interface revxrsal.commands.jda.actor.SlashActorFactory
Returns the default SlashActorFactory that returns a simple SlashCommandActor implementation
deferReply(boolean) - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Acknowledge this interaction and defer the reply to a later time.
deferReply() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Acknowledge this interaction and defer the reply to a later time.

E

embedResponseHandlers() - Static method in class revxrsal.commands.jda.JDAVisitors
Registers response handlers for MessageEmbed and EmbedBuilder
emoji() - Static method in class revxrsal.commands.jda.parameters.SnowflakeParameterTypes
Returns the ParameterType for parsing Emoji objects.
event() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Returns the underlying event
expectedType() - Method in exception revxrsal.commands.jda.exception.WrongChannelTypeException
Returns the type we want

F

findCommand(Lamp<A>, String, List<OptionMapping>) - Static method in class revxrsal.commands.jda.JDAUtils
Finds the most suitable ExecutableCommand from the given path and options
fromOption(OptionMapping, ParameterNode<A, ?>) - Static method in class revxrsal.commands.jda.JDAUtils
Parses the object inside the OptionMapping safely to be fed into a ParameterNode

G

getRequiredPath(ExecutableCommand<A>) - Static method in class revxrsal.commands.jda.JDAUtils
Returns the required literal path of the given command.
getSender(Class<?>, SlashCommandActor, ExecutableCommand<SlashCommandActor>) - Method in enum revxrsal.commands.jda.sender.JDASenderResolver
 
guild() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Returns the guild the command was executed in, otherwise throws a GuildOnlyCommandException
GuildOnly - Annotation Type in revxrsal.commands.jda.annotation
Marks a command as executable in guilds only.
GuildOnlyCommandException - Exception in revxrsal.commands.jda.exception
Thrown when a guild-only command is used in a private channel.
GuildOnlyCommandException() - Constructor for exception revxrsal.commands.jda.exception.GuildOnlyCommandException
 
guildOrNull() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Returns the guild the command was executed in, otherwise returns null

H

hook() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
The InteractionHook which can be used to send deferred replies or followup messages.

I

InvalidCategoryException - Exception in revxrsal.commands.jda.exception
Sent when an invalid Category parameter is supplied.
InvalidCategoryException(String) - Constructor for exception revxrsal.commands.jda.exception.InvalidCategoryException
 
InvalidChannelException - Exception in revxrsal.commands.jda.exception
Sent when an invalid Channel parameter is supplied.
InvalidChannelException(String) - Constructor for exception revxrsal.commands.jda.exception.InvalidChannelException
 
InvalidEmojiException - Exception in revxrsal.commands.jda.exception
Sent when an invalid Emoji parameter is supplied.
InvalidEmojiException(String) - Constructor for exception revxrsal.commands.jda.exception.InvalidEmojiException
 
InvalidRoleException - Exception in revxrsal.commands.jda.exception
Sent when an invalid Role parameter is supplied.
InvalidRoleException(String) - Constructor for exception revxrsal.commands.jda.exception.InvalidRoleException
 
InvalidScheduledEventException - Exception in revxrsal.commands.jda.exception
Sent when an invalid ScheduledEvent parameter is supplied.
InvalidScheduledEventException(String) - Constructor for exception revxrsal.commands.jda.exception.InvalidScheduledEventException
 
InvalidUserException - Exception in revxrsal.commands.jda.exception
Sent when an invalid User parameter is supplied.
InvalidUserException(String) - Constructor for exception revxrsal.commands.jda.exception.InvalidUserException
 
isSenderType(CommandParameter) - Method in enum revxrsal.commands.jda.sender.JDASenderResolver
 

J

jda() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Returns the JDA instance
jdaContextParameters() - Static method in class revxrsal.commands.jda.JDAVisitors
Registers the following types as context parameters: JDA SelfUser Guild SlashCommandInteractionEvent
jdaExceptionHandler() - Static method in class revxrsal.commands.jda.JDAVisitors
Registers the default CommandExceptionHandler for JDA exceptions
JDALamp - Class in revxrsal.commands.jda
Creates Lamp instances that contain relevant registrations for the JDA platform.
JDALamp() - Constructor for class revxrsal.commands.jda.JDALamp
 
jdaParameterTypes() - Static method in class revxrsal.commands.jda.JDAVisitors
Registers parameter types for the following JDA types: Role User Member TextChannel VoiceChannel StageChannel NewsChannel ThreadChannel ScheduledEvent Category Emoji As these types are identified by either a snowflake ID or a name, Lamp will first try to use the snowflake ID (often masked as a @mention).
JDAParser<A extends SlashCommandActor> - Class in revxrsal.commands.jda.slash
 
JDAParser() - Constructor for class revxrsal.commands.jda.slash.JDAParser
 
jdaSenderResolver() - Static method in class revxrsal.commands.jda.JDAVisitors
Registers SenderResolvers for these parameters: SlashCommandInteractionEvent User Member MessageChannel
JDASenderResolver - Enum in revxrsal.commands.jda.sender
 
JDASlashListener<A extends SlashCommandActor> - Class in revxrsal.commands.jda.slash
 
JDASlashListener(Lamp<A>, SlashActorFactory<A>) - Constructor for class revxrsal.commands.jda.slash.JDASlashListener
 
JDAUtils - Class in revxrsal.commands.jda
Includes utilities for the JDA platform
JDAVisitors - Class in revxrsal.commands.jda
Includes modular building blocks for hooking into the JDA platform.
JDAVisitors() - Constructor for class revxrsal.commands.jda.JDAVisitors
 

L

lamp() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Returns the Lamp instance that constructed this actor.

M

member() - Static method in class revxrsal.commands.jda.parameters.SnowflakeParameterTypes
Returns the ParameterType for parsing Member objects.
MemberNotInGuildException - Exception in revxrsal.commands.jda.exception
Thrown when a user supplies a User, but we require a Member (a user in the executing guild)
MemberNotInGuildException(User) - Constructor for exception revxrsal.commands.jda.exception.MemberNotInGuildException
 

N

newsChannel() - Static method in class revxrsal.commands.jda.parameters.SnowflakeParameterTypes
Returns the ParameterType for parsing NewsChannel objects.
NSFW - Annotation Type in revxrsal.commands.jda.annotation
Marks a command as NSFW.

O

onCommandInvocation(CommandInvocationException, A) - Method in class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 
onEvent(GenericEvent) - Method in class revxrsal.commands.jda.slash.JDASlashListener
 
onGuildOnlyCommand(GuildOnlyCommandException, SlashCommandActor) - Method in class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 
onInvalidCategory(InvalidCategoryException, SlashCommandActor) - Method in class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 
onInvalidChannel(InvalidChannelException, SlashCommandActor) - Method in class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 
onInvalidEmoji(InvalidEmojiException, SlashCommandActor) - Method in class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 
onInvalidHelpPage(InvalidHelpPageException, A) - Method in class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 
onInvalidRole(InvalidRoleException, SlashCommandActor) - Method in class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 
onInvalidScheduledEvent(InvalidScheduledEventException, SlashCommandActor) - Method in class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 
onInvalidUser(InvalidUserException, SlashCommandActor) - Method in class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 
onMemberNotInGuild(MemberNotInGuildException, SlashCommandActor) - Method in class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 
onNoPermission(NoPermissionException, A) - Method in class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 
onWrongChannelType(WrongChannelTypeException, SlashCommandActor) - Method in class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 

P

parse(ExecutableCommand<A>) - Method in class revxrsal.commands.jda.slash.JDAParser
 

R

replyToInteraction(String) - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Reply to this interaction and acknowledge it.
replyToInteraction(MessageCreateData) - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Reply to this interaction and acknowledge it.
revxrsal.commands.jda - package revxrsal.commands.jda
 
revxrsal.commands.jda.actor - package revxrsal.commands.jda.actor
 
revxrsal.commands.jda.annotation - package revxrsal.commands.jda.annotation
 
revxrsal.commands.jda.exception - package revxrsal.commands.jda.exception
 
revxrsal.commands.jda.parameters - package revxrsal.commands.jda.parameters
 
revxrsal.commands.jda.sender - package revxrsal.commands.jda.sender
 
revxrsal.commands.jda.slash - package revxrsal.commands.jda.slash
 
role() - Static method in class revxrsal.commands.jda.parameters.SnowflakeParameterTypes
Returns the ParameterType for parsing Role objects

S

scheduledEvent() - Static method in class revxrsal.commands.jda.parameters.SnowflakeParameterTypes
Returns the ParameterType for parsing ScheduledEvent objects.
selfUser() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Returns the currently logged-in user
SlashActorFactory<A extends SlashCommandActor> - Interface in revxrsal.commands.jda.actor
Represents an interface that constructs instances of a custom actor based on different JDA events.
SlashCommandActor - Interface in revxrsal.commands.jda.actor
Represents a CommandActor that originated from a slash command, or from an auto-complete request.
slashCommands(JDA, SlashActorFactory<A>) - Static method in class revxrsal.commands.jda.JDAVisitors
Instructs Lamp to send all the currently registered commands to Discord
slashCommands(JDA) - Static method in class revxrsal.commands.jda.JDAVisitors
Instructs Lamp to send all the currently registered commands to Discord
SlashJDAExceptionHandler<A extends SlashCommandActor> - Class in revxrsal.commands.jda.exception
 
SlashJDAExceptionHandler() - Constructor for class revxrsal.commands.jda.exception.SlashJDAExceptionHandler
 
SnowflakeParameterTypes - Class in revxrsal.commands.jda.parameters
Contains ParameterTypes for common types in JDA.
stageChannel() - Static method in class revxrsal.commands.jda.parameters.SnowflakeParameterTypes
Returns the ParameterType for parsing StageChannel objects.
suppliedUser() - Method in exception revxrsal.commands.jda.exception.MemberNotInGuildException
Returns the user supplied

T

textChannel() - Static method in class revxrsal.commands.jda.parameters.SnowflakeParameterTypes
Returns the ParameterType for parsing TextChannel objects.
threadChannel() - Static method in class revxrsal.commands.jda.parameters.SnowflakeParameterTypes
Returns the ParameterType for parsing ThreadChannel objects.
toChoice(String, OptionType) - Static method in class revxrsal.commands.jda.JDAUtils
Maps the given suggestion to a Command.Choice.
toChoices(Collection<String>, OptionType) - Static method in class revxrsal.commands.jda.JDAUtils
Maps the given list of suggestions to a list of Command.Choices.
toOptionData(ParameterNode<A, Object>) - Static method in class revxrsal.commands.jda.JDAUtils
Creates OptionData from the given ParameterNode.
toOptionType(ParameterNode<A, Object>) - Static method in class revxrsal.commands.jda.JDAUtils
Finds a suitable OptionType for the given ParameterNode.

U

user() - Method in interface revxrsal.commands.jda.actor.SlashCommandActor
Returns the underlying User
user() - Static method in class revxrsal.commands.jda.parameters.SnowflakeParameterTypes
Returns the ParameterType for parsing User objects.

V

valueOf(String) - Static method in enum revxrsal.commands.jda.sender.JDASenderResolver
Returns the enum constant of this type with the specified name.
values() - Static method in enum revxrsal.commands.jda.sender.JDASenderResolver
Returns an array containing the constants of this enum type, in the order they are declared.
voiceChannel() - Static method in class revxrsal.commands.jda.parameters.SnowflakeParameterTypes
Returns the ParameterType for parsing VoiceChannel objects.

W

WrongChannelTypeException - Exception in revxrsal.commands.jda.exception
Thrown when the user supplies a channel of the wrong type
WrongChannelTypeException(GuildChannel, Class<?>) - Constructor for exception revxrsal.commands.jda.exception.WrongChannelTypeException
 
A B C D E F G H I J L M N O P R S T U V W 
Skip navigation links