Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addButtonMappings(IdMapping<ButtonHandler>...) - Method in class xyz.dynxsty.dih4jda.DIH4JDA
- addContextCommands(ContextCommand<?>...) - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Manually registers
ContextCommands. - addEntitySelectMenuMappings(IdMapping<EntitySelectMenuHandler>...) - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Binds all
EntitySelectMenuHandlers to their id, - addEventListener(Object...) - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Allows to register
event listenerclasses. - addModalMappings(IdMapping<ModalHandler>...) - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Binds all
ModalHandlers to their id. - addSlashCommands(SlashCommand...) - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Manually registers
SlashCommands. - addStringSelectMenuMappings(IdMapping<StringSelectMenuHandler>...) - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Binds all
StringSelectMenuHandlers to their id. - addSubcommandGroups(SlashCommand.SubcommandGroup...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand
-
Adds
SlashCommand.SubcommandGroups to thisSlashCommand. - addSubcommands(SlashCommand.Subcommand...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand
-
Adds
SlashCommand.Subcommands to thisSlashCommand. - ApplicationCommand<E extends net.dv8tion.jda.api.events.interaction.command.GenericCommandInteractionEvent,
T> - Class in xyz.dynxsty.dih4jda.interactions.commands.application -
Model class for all Application Commands.
- ApplicationCommand() - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.application.ApplicationCommand
-
Creates a default
ApplicationCommand. - applyCooldown(long, Instant) - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
Manually applies a cooldown for the specified user id.
Command Cooldowns DO NOT persist between sessions! - ArrayUtil - Class in xyz.dynxsty.dih4jda.util
-
Utility class that contains some useful methods regarding arrays.
- asCommand() - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand
-
Gets the corresponding
JDA entityfor this command. - asSubcommand() - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand.Subcommand
-
Gets the corresponding
JDA-entityfor this subcommand. - AutoCompletable - Interface in xyz.dynxsty.dih4jda.interactions
-
Interface for commands that handle the
CommandAutoCompleteInteractionEvent. - AutoCompleteExceptionEvent - Class in xyz.dynxsty.dih4jda.events
-
An event that gets fired when an exception gets raised while handling an autocomplete interaction.
- AutoCompleteExceptionEvent(DIH4JDA, CommandAutoCompleteInteraction, Throwable) - Constructor for class xyz.dynxsty.dih4jda.events.AutoCompleteExceptionEvent
-
Creates an exception event object.
- AutoCompleteUtils - Class in xyz.dynxsty.dih4jda.util
-
Utility class that contains some useful methods regarding the AutoComplete system.
B
- BaseApplicationCommand<E extends net.dv8tion.jda.api.events.interaction.command.GenericCommandInteractionEvent,
T> - Class in xyz.dynxsty.dih4jda.interactions.commands.application -
An extension of
ApplicationCommandwhich contains aRegistrationTypeandBaseApplicationCommand.queueableGuilds. - BaseApplicationCommand() - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.application.BaseApplicationCommand
-
Creates a default
BaseApplicationCommand. - build() - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Returns a validated
DIH4JDAinstance. - build(String, Object...) - Static method in class xyz.dynxsty.dih4jda.util.ComponentIdBuilder
-
Builds a component-id using the (set) separator and the given identifier and arguments.
- buildCommandPath(String...) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Used to create one command name out of the SlashCommand, SlashSubCommandGroup and SlashSubCommand
- BUTTON_NOT_FOUND - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- ButtonHandler - Interface in xyz.dynxsty.dih4jda.interactions.components
-
An interface that contains the method that should be executed when a user interacts with a
Button.
C
- checkEmptyConstructor(Class<?>) - Static method in class xyz.dynxsty.dih4jda.util.Checks
-
Checks if the given class has an empty constructor.
- checkImplementation(Class<?>, Class<?>) - Static method in class xyz.dynxsty.dih4jda.util.Checks
-
Checks if the given base class implements a certain class.
- Checks - Class in xyz.dynxsty.dih4jda.util
-
Utility class for checking certain conditions.
- ClasspathHelper - Class in xyz.dynxsty.dih4jda.util
-
Utility class for finding classes on the classpath.
- ClassUtils - Class in xyz.dynxsty.dih4jda.util
-
Utility class for working with classes.
- ClassWalker - Class in xyz.dynxsty.dih4jda.util
-
A class that provides you with the ability to get all classes inside a specific package.
- ClassWalker(String) - Constructor for class xyz.dynxsty.dih4jda.util.ClassWalker
-
Creates a new instance that allows you to perform reflective operations for the defined package.
- CommandCooldownEvent - Class in xyz.dynxsty.dih4jda.events
-
An event that gets fired when the user, which invoked the command, is not yet able to use this command due to a specified
Command CooldownCommand Cooldowns DO NOT persist between sessions! - CommandCooldownEvent(DIH4JDA, CommandInteraction, RestrictedCommand.Cooldown) - Constructor for class xyz.dynxsty.dih4jda.events.CommandCooldownEvent
-
Creates a new instance of this event.
- CommandExceptionEvent - Class in xyz.dynxsty.dih4jda.events
-
An event that gets fired when an exception gets raised while executing any command.
- CommandExceptionEvent(DIH4JDA, CommandInteraction, Throwable) - Constructor for class xyz.dynxsty.dih4jda.events.CommandExceptionEvent
-
Creates a new instance of this event.
- CommandNotRegisteredException - Exception Class in xyz.dynxsty.dih4jda.exceptions
-
An exception that is thrown if a command is not registered by the
DIH4JDAinstance. - CommandNotRegisteredException(String) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.CommandNotRegisteredException
-
Creates a new instance of this exception.
- COMMANDS_QUEUED - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- CommandUtils - Class in xyz.dynxsty.dih4jda.util
-
A utility class that contains some useful methods regarding command data.
- compareContextCommands(Command, ContextCommand<?>) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Takes a
Commandobject that wraps a context-command and compares it to aContextCommandobject. - compareSlashCommands(Command, SlashCommand) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Takes a
Commandobject that wraps aSlashCommandDataobject and compares it to aSlashCommandobject. - ComponentExceptionEvent - Class in xyz.dynxsty.dih4jda.events
-
An event that gets fired when an exception gets raised while interacting with a message component.
- ComponentExceptionEvent(DIH4JDA, ComponentInteraction, Throwable) - Constructor for class xyz.dynxsty.dih4jda.events.ComponentExceptionEvent
-
Creates a new instance of this event.
- ComponentIdBuilder - Class in xyz.dynxsty.dih4jda.util
-
Utility class that allows for easy and consistent Component-ID building.
- contains(Object[], Object) - Static method in class xyz.dynxsty.dih4jda.util.ArrayUtil
-
Checks if the specified object is inside the specifed array.
- CONTEXT_COMMAND_REGISTERED - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- CONTEXT_COMMAND_SKIPPED - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- ContextCommand<E extends net.dv8tion.jda.api.events.interaction.command.GenericCommandInteractionEvent> - Class in xyz.dynxsty.dih4jda.interactions.commands.application
-
Model class which represents a single Context Command.
- ContextCommand.Message - Class in xyz.dynxsty.dih4jda.interactions.commands.application
-
Creates a new message-context command.
- ContextCommand.User - Class in xyz.dynxsty.dih4jda.interactions.commands.application
-
Creates a new user-context command.
D
- debug(String, Object...) - Static method in class xyz.dynxsty.dih4jda.DIH4JDALogger
- debug(DIH4JDALogger.Type, String, Object...) - Static method in class xyz.dynxsty.dih4jda.DIH4JDALogger
- DEBUG - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- DIH4JDA - Class in xyz.dynxsty.dih4jda
-
Getting Started
- DIH4JDA(DIH4JDAConfig) - Constructor for class xyz.dynxsty.dih4jda.DIH4JDA
-
Constructs a new DIH4JDA instance using the specified
DIH4JDAConfig. - DIH4JDABuilder - Class in xyz.dynxsty.dih4jda
-
Builder class used to instantiate a new
DIH4JDAinstance. - DIH4JDAConfig - Class in xyz.dynxsty.dih4jda.config
-
Simple data class which represents
DIH4JDA's configuration. - DIH4JDAConfig() - Constructor for class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
-
Creates a default instance.
- DIH4JDAEvent<I extends net.dv8tion.jda.api.interactions.Interaction> - Class in xyz.dynxsty.dih4jda.events
-
A generic event, which holds the events' name, the
DIH4JDAinstance and thefollow-up interaction. - DIH4JDAEventListener - Interface in xyz.dynxsty.dih4jda.events
-
An interface containing all events and their method that DIH4JDA can fire.
- DIH4JDAException - Exception Class in xyz.dynxsty.dih4jda.exceptions
-
The top-level
Exceptionthat is thrown for everything regarding DIH4JDA. - DIH4JDAException(String) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.DIH4JDAException
-
Creates a new instance of this exception.
- DIH4JDAException(Throwable) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.DIH4JDAException
-
Creates a new instance of this exception if it was caused by another
Throwable. - DIH4JDALogger - Class in xyz.dynxsty.dih4jda
-
This handler's own Logging System.
- DIH4JDALogger() - Constructor for class xyz.dynxsty.dih4jda.DIH4JDALogger
-
Creates a new, default instance of the
DIH4JDALogger. - DIH4JDALogger.Type - Enum Class in xyz.dynxsty.dih4jda
-
All types that are supported by the
DIH4JDALogger. - DIH4JDAReflectionException - Exception Class in xyz.dynxsty.dih4jda.exceptions
-
Exception that is thrown for everything that is related to reflection inside DIH4JDA.
- DIH4JDAReflectionException(Throwable) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.DIH4JDAReflectionException
-
Creates a new instance of the
DIH4JDAReflectionException. - DIH4JDAThrowableEvent<I extends net.dv8tion.jda.api.interactions.Interaction> - Class in xyz.dynxsty.dih4jda.events
-
Further abstraction of the
DIH4JDAEventclass, which featuresThrowables. - disableAutomaticCommandRegistration() - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Whether DIH4JDA should automatically register all interactions on each onReady event.
- disableLogging(DIH4JDALogger.Type...) - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Sets the types of logging that should be disabled.
- disableStacktracePrinting() - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Disables stacktrace-printing for all raised exceptions that were not caught by an
DIH4JDAEventListener. - disableUnknownCommandDeletion() - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Disables the deletion of unknown/unused commands while using SmartQueue.
- disableUnregisteredCommandException() - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Disables the
CommandNotRegisteredExceptiongetting thrown for unregistered commands. - doesImplement(Class<?>, Class<?>) - Static method in class xyz.dynxsty.dih4jda.util.ClassUtils
-
Checks if the given base class implements a certain class.
E
- EntitySelectMenuHandler - Interface in xyz.dynxsty.dih4jda.interactions.components
-
An interface that contains the method that should be executed when a user interacts with a
EntitySelectMenu. - equals(DataObject, DataObject) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Compares two
DataObject. - error(String, Object...) - Static method in class xyz.dynxsty.dih4jda.DIH4JDALogger
- error(DIH4JDALogger.Type, String, Object...) - Static method in class xyz.dynxsty.dih4jda.DIH4JDALogger
- ERROR - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- EVENT_MISSING_HANDLER - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- ExecutableCommand<E> - Interface in xyz.dynxsty.dih4jda.interactions.commands
-
Represents an executable command.
- execute(E) - Method in interface xyz.dynxsty.dih4jda.interactions.commands.ExecutableCommand
-
The method that gets called once the command gets executed.
- execute(SlashCommandInteractionEvent) - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand
F
- filterByType(Pair<Set<SlashCommand>, Set<ContextCommand<?>>>, RegistrationType) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Removes all elements of the provided
Pairwhich don't match the givenRegistrationType. - filterChoices(String, List<Command.Choice>) - Static method in class xyz.dynxsty.dih4jda.util.AutoCompleteUtils
-
Filters all AutoComplete choices based on the user's current input.
- filterChoices(String, Command.Choice...) - Static method in class xyz.dynxsty.dih4jda.util.AutoCompleteUtils
-
Filters all AutoComplete choices based on the user's current input.
- filterChoices(CommandAutoCompleteInteractionEvent, List<Command.Choice>) - Static method in class xyz.dynxsty.dih4jda.util.AutoCompleteUtils
-
Filters all AutoComplete choices based on the user's current input.
- filterChoices(CommandAutoCompleteInteractionEvent, Command.Choice...) - Static method in class xyz.dynxsty.dih4jda.util.AutoCompleteUtils
-
Filters all AutoComplete choices based on the user's current input.
- fire(DIH4JDAEvent<I>) - Static method in class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
-
Fires an event from the
DIH4JDAEventListener. - forPackage(String) - Static method in class xyz.dynxsty.dih4jda.util.ClasspathHelper
-
Gets all
URLs in the specified package.
G
- getAllClasses() - Method in class xyz.dynxsty.dih4jda.util.ClassWalker
-
Gets all classes inside the given package and sub packages.
- getAsMention(SlashCommand) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Gets the mention from a
SlashCommand. - getAsMention(SlashCommand.Subcommand) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Gets the mention from a
SlashCommand.Subcommand. - getButtonMappings() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Gets all
ButtonHandlers. - getClassLoaderForClass(Class<?>) - Static method in class xyz.dynxsty.dih4jda.util.IoUtils
-
Tries to get the classloader for the given class.
- getCommandCooldown() - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
Returns the
Durationthe user has to wait between command executions. - getCommandData() - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.ApplicationCommand
-
Gets the command data that was previously set with
ApplicationCommand.setCommandData(Object) - getConfig() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
The
DIH4JDAConfigthat is used by this specificDIH4JDAinstance. - getCooldown() - Method in class xyz.dynxsty.dih4jda.events.CommandCooldownEvent
-
Gets you the
RestrictedCommand.Cooldownthe user has. - getData() - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand.SubcommandGroup
-
Gets the
SubcommandGroupData. - getDefaultRegistrationType() - Static method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Gets the default
RegistrationType. - getDIH4JDA() - Method in class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
-
The
DIH4JDAinstance that fired the event. - getEntitySelectMenuMappings() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Gets all registered
EntitySelectMenuHandlers. - getEventListeners() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Gets all
DIH4JDAEventListeners that were previously added usingDIH4JDA.addEventListener(Object...). - getEventName() - Method in class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
-
The internal name of the event.
- getFirst() - Method in class xyz.dynxsty.dih4jda.util.Pair
-
Gets you the
Objectthat was defined as first. - getGuildIds() - Method in class xyz.dynxsty.dih4jda.events.InvalidGuildEvent
-
The guild ids that the commands could only be executed on.
- getHandler() - Method in class xyz.dynxsty.dih4jda.interactions.components.IdMapping
-
Gets you the handler that was linked with the
IdMapping.getIds(). - getIds() - Method in class xyz.dynxsty.dih4jda.interactions.components.IdMapping
-
Gets you the ids that linked themselves with their
IdMapping.getHandler(). - getInstance(Class<?>) - Static method in class xyz.dynxsty.dih4jda.util.ClassUtils
-
Creates a new Instance of the given class.
- getInteraction() - Method in class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
-
The follow-up interaction that was defined by instantiating the class.
- getJDA() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Gets the
JDAinstanceDIH4JDAuses. - getLastUse() - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand.Cooldown
-
Gets you the
Instantthe user has used theRestrictedCommandthe last time. - getModalMappings() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Gets all
ModalHandlers. - getNames(Set<ContextCommand<?>>, Set<SlashCommand>) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Builds a formatted string out of the given sets of CommandData.
- getNextUse() - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand.Cooldown
-
Gets you the
Instantof when a user can use theRestrictedCommandthe next time. - getParent() - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand.Subcommand
-
Gets the
parentfor this subcommand. - getPermissions() - Method in class xyz.dynxsty.dih4jda.events.InsufficientPermissionsEvent
-
Gets you all the permissions that are required to perform the
RestrictedCommandthat causes this event. - getQueueableGuilds() - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.BaseApplicationCommand
-
Gets all the guilds that the command should be registered/queued in.
- getRegistrationType() - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.BaseApplicationCommand
-
The
RegistrationTypethe command got assigned. - getRequiredGuilds() - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
The required guilds the command can be executed in.
- getRequiredPermissions() - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
The required
PermissiontheUserneeds to execute the command. - getRequiredRoles() - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
The
Roles that are required to execute the command. - getRequiredUsers() - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
The user ids from the
Userthat are allowed to execute the command. - getRetrievedCommands() - Static method in class xyz.dynxsty.dih4jda.InteractionHandler
-
Returns an unmodifiable Map of all retrieved (and/or queued) commands, where the key is the commands' name and the value the
Commandinstance itself. - getRoleIds() - Method in class xyz.dynxsty.dih4jda.events.InvalidRoleEvent
-
The ids of the roles that was allowed to execute the
RestrictedCommand. - getSecond() - Method in class xyz.dynxsty.dih4jda.util.Pair
-
Gets you the
Objectthat was defined as second. - getSeparator() - Static method in class xyz.dynxsty.dih4jda.util.ComponentIdBuilder
-
Gets the current separator.
- getStringSelectMenuMappings() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Gets all registered
StringSelectMenuHandlers. - getSubcommandGroups() - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand
-
Returns an array of all
SlashCommand.SubcommandGroups this command contains. - getSubcommands() - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand
-
Returns an array of all
SlashCommand.Subcommands this command contains. - getSubcommands() - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand.SubcommandGroup
-
Gets the
SlashCommand.Subcommand. - getSubTypesOf(Class<T>) - Method in class xyz.dynxsty.dih4jda.util.ClassWalker
-
Gets all classes in the given package and sub packages which extend the specified class.
- getThrowable() - Method in class xyz.dynxsty.dih4jda.events.DIH4JDAThrowableEvent
-
The
Throwablethat was thrown. - getUserIds() - Method in class xyz.dynxsty.dih4jda.events.InvalidUserEvent
-
The ids of the user that was allowed to execute the
RestrictedCommand. - GLOBAL - Enum constant in enum class xyz.dynxsty.dih4jda.interactions.commands.application.RegistrationType
-
Marks a command as a global command.
- GUILD - Enum constant in enum class xyz.dynxsty.dih4jda.interactions.commands.application.RegistrationType
-
Marks a command as a guild only command.
H
- handleAutoComplete(CommandAutoCompleteInteractionEvent, AutoCompleteQuery) - Method in interface xyz.dynxsty.dih4jda.interactions.AutoCompletable
-
Method that must be overridden for all commands that handle auto-complete interactions.
- handleButton(ButtonInteractionEvent, Button) - Method in interface xyz.dynxsty.dih4jda.interactions.components.ButtonHandler
-
Method that must be overridden for all commands that handle button interactions.
- handleEntitySelectMenu(EntitySelectInteractionEvent, List<IMentionable>) - Method in interface xyz.dynxsty.dih4jda.interactions.components.EntitySelectMenuHandler
-
Method that must be overridden for all classes that handle
EntitySelectInteractionAll select menus that match the identifier will execute this class's implementation of the handleEntitySelectMenu method. - handleModal(ModalInteractionEvent, List<ModalMapping>) - Method in interface xyz.dynxsty.dih4jda.interactions.components.ModalHandler
-
Method that must be overridden for all Commands that handle Modal Interactions.
- handleStringSelectMenu(StringSelectInteractionEvent, List<String>) - Method in interface xyz.dynxsty.dih4jda.interactions.components.StringSelectMenuHandler
-
Method that must be overridden for all classes that handle
StringSelectInteraction. - hasCooldown(long) - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
Returns whether the command can be used by the specified user.
Command Cooldowns DO NOT persist between sessions!
I
- IdMapping<T> - Class in xyz.dynxsty.dih4jda.interactions.components
- info(String, Object...) - Static method in class xyz.dynxsty.dih4jda.DIH4JDALogger
- info(DIH4JDALogger.Type, String, Object...) - Static method in class xyz.dynxsty.dih4jda.DIH4JDALogger
- INFO - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- InsufficientPermissionsEvent - Class in xyz.dynxsty.dih4jda.events
-
An event that gets fired when the user, which invoked the command, does NOT have one of the required permissions.
- InsufficientPermissionsEvent(DIH4JDA, CommandInteraction, Set<Permission>) - Constructor for class xyz.dynxsty.dih4jda.events.InsufficientPermissionsEvent
-
Creates an instance of the
InsufficientPermissionsEvent. - InteractionHandler - Class in xyz.dynxsty.dih4jda
-
Handler class, that finds, registers and handles all Application Commands and their components.
- InvalidConfigurationException - Exception Class in xyz.dynxsty.dih4jda.exceptions
-
Exception that is thrown for an invalid configuration.
- InvalidConfigurationException(String) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.InvalidConfigurationException
-
Creates a new
InvalidConfigurationException. - InvalidGuildEvent - Class in xyz.dynxsty.dih4jda.events
-
An event that gets fired when the command is NOT executed in one of the required guild.
- InvalidGuildEvent(DIH4JDA, CommandInteraction, Set<Long>) - Constructor for class xyz.dynxsty.dih4jda.events.InvalidGuildEvent
-
Creates a new instance
InvalidGuildEvent. - InvalidPackageException - Exception Class in xyz.dynxsty.dih4jda.exceptions
-
Exception that is thrown for an invalid command package configuration.
- InvalidPackageException(String) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.InvalidPackageException
-
Creates a new
InvalidPackageException. - InvalidRoleEvent - Class in xyz.dynxsty.dih4jda.events
-
An event that gets fired when the user, which invoked the command, does NOT have the required roles to use this command.
- InvalidRoleEvent(DIH4JDA, CommandInteraction, Set<Long>) - Constructor for class xyz.dynxsty.dih4jda.events.InvalidRoleEvent
-
Create a new instance of the
InvalidRoleEvent. - InvalidUserEvent - Class in xyz.dynxsty.dih4jda.events
-
An event that gets fired when the user, which invoked the command, is NOT allowed to use this command.
- InvalidUserEvent(DIH4JDA, CommandInteraction, Set<Long>) - Constructor for class xyz.dynxsty.dih4jda.events.InvalidUserEvent
-
Creates a new instance of the
InvalidUserEvent. - IoUtils - Class in xyz.dynxsty.dih4jda.util
-
Utility class that contains some useful methods regarding IO.
M
- Message() - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.application.ContextCommand.Message
-
Creates a new, default message command.
- MODAL_NOT_FOUND - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- ModalExceptionEvent - Class in xyz.dynxsty.dih4jda.events
-
An event that gets fired when an exception gets raised while handling a modal interaction.
- ModalExceptionEvent(DIH4JDA, ModalInteraction, Throwable) - Constructor for class xyz.dynxsty.dih4jda.events.ModalExceptionEvent
-
Creates a new
ModalExceptionEvent. - ModalHandler - Interface in xyz.dynxsty.dih4jda.interactions.components
-
An interface that contains the method that should be executed when a user interacts with a
Modal.
N
- notNull(Object, String) - Static method in class xyz.dynxsty.dih4jda.util.Checks
-
Throws an
IllegalArgumentExceptionif the givenObjectis null.
O
- of(SubcommandGroupData, SlashCommand.Subcommand...) - Static method in class xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand.SubcommandGroup
-
Creates a new instance of the
SlashCommand.SubcommandGroupclass. - of(T, String...) - Static method in class xyz.dynxsty.dih4jda.interactions.components.IdMapping
-
Creates a new
IdMappingwith the specified handler and ids. - onAutoCompleteException(AutoCompleteExceptionEvent) - Method in interface xyz.dynxsty.dih4jda.events.DIH4JDAEventListener
-
An event that gets fired when an exception gets raised while handling an autocomplete interaction.
- onButtonInteraction(ButtonInteractionEvent) - Method in class xyz.dynxsty.dih4jda.InteractionHandler
-
Fired if Discord reports a
ButtonInteractionEvent. - onCommandAutoCompleteInteraction(CommandAutoCompleteInteractionEvent) - Method in class xyz.dynxsty.dih4jda.InteractionHandler
-
Fired if Discord reports a
CommandAutoCompleteInteractionEvent. - onCommandCooldown(CommandCooldownEvent) - Method in interface xyz.dynxsty.dih4jda.events.DIH4JDAEventListener
-
An event that gets fired when the user, which invoked the command, is not yet able to use this command due to a specified
Command Cooldown
Command Cooldowns DO NOT persist between sessions! - onCommandException(CommandExceptionEvent) - Method in interface xyz.dynxsty.dih4jda.events.DIH4JDAEventListener
-
An event that gets fired when an exception gets raised while executing any command.
- onComponentException(ComponentExceptionEvent) - Method in interface xyz.dynxsty.dih4jda.events.DIH4JDAEventListener
-
An event that gets fired when an exception gets raised while interacting with a message component.
- onEntitySelectInteraction(EntitySelectInteractionEvent) - Method in class xyz.dynxsty.dih4jda.InteractionHandler
- onInsufficientPermissions(InsufficientPermissionsEvent) - Method in interface xyz.dynxsty.dih4jda.events.DIH4JDAEventListener
-
An event that gets fired when the user, which invoked the command, does NOT have one of the required permissions.
- onInvalidGuild(InvalidGuildEvent) - Method in interface xyz.dynxsty.dih4jda.events.DIH4JDAEventListener
-
An event that gets fired when the command is NOT executed in one of the required guild.
- onInvalidRole(InvalidRoleEvent) - Method in interface xyz.dynxsty.dih4jda.events.DIH4JDAEventListener
-
An event that gets fired when the user, which invoked the command, does NOT have the required roles to use this command.
- onInvalidUser(InvalidUserEvent) - Method in interface xyz.dynxsty.dih4jda.events.DIH4JDAEventListener
-
An event that gets fired when the user, which invoked the command, is NOT allowed to use this command.
- onMessageContextInteraction(MessageContextInteractionEvent) - Method in class xyz.dynxsty.dih4jda.InteractionHandler
-
Fired if Discord reports a
MessageContextInteractionEvent. - onModalException(ModalExceptionEvent) - Method in interface xyz.dynxsty.dih4jda.events.DIH4JDAEventListener
-
An event that gets fired when an exception gets raised while handling a modal interaction.
- onModalInteraction(ModalInteractionEvent) - Method in class xyz.dynxsty.dih4jda.InteractionHandler
-
Fired if Discord reports a
ModalInteractionEvent. - onReady(ReadyEvent) - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Ran once the
JDAinstance fires theReadyEvent. - onSlashCommandInteraction(SlashCommandInteractionEvent) - Method in class xyz.dynxsty.dih4jda.InteractionHandler
-
Fired if Discord reports a
SlashCommandInteractionEvent. - onStringSelectInteraction(StringSelectInteractionEvent) - Method in class xyz.dynxsty.dih4jda.InteractionHandler
-
Fired if Discord reports a
StringSelectInteractionEvent. - onUserContextInteraction(UserContextInteractionEvent) - Method in class xyz.dynxsty.dih4jda.InteractionHandler
-
Fired if Discord reports a
UserContextInteractionEvent.
P
- Pair<F,
S> - Class in xyz.dynxsty.dih4jda.util -
A Pair of two elements.
- Pair(F, S) - Constructor for class xyz.dynxsty.dih4jda.util.Pair
R
- registerInteractions() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Registers all Interactions and replaces the old ones.
- registerInteractions() - Method in class xyz.dynxsty.dih4jda.InteractionHandler
-
Registers all interactions.
- RegistrationType - Enum Class in xyz.dynxsty.dih4jda.interactions.commands.application
-
Whether the command should be queued as a global- or as a guild command.
- RestrictedCommand - Class in xyz.dynxsty.dih4jda.interactions.commands
-
Represents a basic command.
- RestrictedCommand() - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
Creates a default instance.
- RestrictedCommand.Cooldown - Class in xyz.dynxsty.dih4jda.interactions.commands
-
Model class which represents a single command cooldown.
- retrieveCooldown(long) - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
Gets the
timethe specified user can execute this command again.
S
- SELECT_MENU_NOT_FOUND - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- setCommandCooldown(Duration) - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
Allows to set a cooldown for this command.
- setCommandData(T) - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.ApplicationCommand
-
Sets this commands'
CommandData. - setCommandPackages(String...) - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Allows to specify package(s) that house all
ApplicationCommands classes. - setDefaultRegistrationType(RegistrationType) - Static method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Sets the default
RegistrationTypefor allApplication Commands. - setDefaultSeparator(String) - Static method in class xyz.dynxsty.dih4jda.util.ComponentIdBuilder
-
Changes the default component-id separator.
- setExecutor(Executor) - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Allows to specify a custom
Executorthat will be used to execute all commands and events. - setGlobalSmartQueue(boolean) - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
NOT RECOMMENDED (unless there are some bugs)
This will disable the GLOBAL Smart Queueing functionality. - setGuildSmartQueue(boolean) - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
This will disable the GUILD Smart Queueing functionality.
- setJDA(JDA) - Static method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Sets the
JDAinstance the handler will be used for. - setQueueableGuilds(Long...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.BaseApplicationCommand
-
Limits this command to only be queued in the specified guilds.
- setRegistrationType(RegistrationType) - Method in class xyz.dynxsty.dih4jda.interactions.commands.application.BaseApplicationCommand
-
How the command should be queued.
- setRequiredGuilds(Long...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
Allows to require a set of
Guilds only in which the command can get executed. - setRequiredPermissions(Permission...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
Allows to require a set of
Permissions which are needed to execute the corresponding command. - setRequiredRoles(Long...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
Allows to require a set of
Longs (role Ids) which are able to execute the corresponding command. - setRequiredUsers(Long...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
-
Allows to require a set of
Longs (user Ids) which are able to execute the corresponding command. - SLASH_COMMAND_REGISTERED - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- SLASH_COMMAND_SKIPPED - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- SlashCommand - Class in xyz.dynxsty.dih4jda.interactions.commands.application
-
Represents a single Slash Command.
- SlashCommand.Subcommand - Class in xyz.dynxsty.dih4jda.interactions.commands.application
-
Model class which represents a single Subcommand.
- SlashCommand.SubcommandGroup - Class in xyz.dynxsty.dih4jda.interactions.commands.application
-
Model class which represents a single subcommand group.
- SMART_QUEUE - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- SMART_QUEUE_DELETED_UNKNOWN - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- SMART_QUEUE_IGNORED - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- SMART_QUEUE_IGNORED_UNKNOWN - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- SmartQueue - Class in xyz.dynxsty.dih4jda
-
Smart Queue
This Class handles all the SmartQueue functionality which can be disabled usingDIH4JDABuilder.setGlobalSmartQueue(boolean)andDIH4JDABuilder.setGuildSmartQueue(boolean). - sortArrayFromDataObject(DataObject) - Static method in class xyz.dynxsty.dih4jda.util.ArrayUtil
-
Gets the json-byte array and sorts it via
Arrays.sort(byte[]). - split(String) - Static method in class xyz.dynxsty.dih4jda.util.ComponentIdBuilder
-
Splits the given id by the current separator.
- StringSelectMenuHandler - Interface in xyz.dynxsty.dih4jda.interactions.components
-
An interface that contains the method that should be executed when a user interacts with a
StringSelectMenu. - Subcommand() - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand.Subcommand
-
Creates a default instance.
T
- trace(String, Object...) - Static method in class xyz.dynxsty.dih4jda.DIH4JDALogger
- trace(DIH4JDALogger.Type, String, Object...) - Static method in class xyz.dynxsty.dih4jda.DIH4JDALogger
- TRACE - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
U
- User() - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.application.ContextCommand.User
-
Creates a new, default user command.
V
- valueOf(String) - Static method in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class xyz.dynxsty.dih4jda.interactions.commands.application.RegistrationType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class xyz.dynxsty.dih4jda.interactions.commands.application.RegistrationType
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- warn(String, Object...) - Static method in class xyz.dynxsty.dih4jda.DIH4JDALogger
- warn(DIH4JDALogger.Type, String, Object...) - Static method in class xyz.dynxsty.dih4jda.DIH4JDALogger
- WARN - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
X
- xyz.dynxsty.dih4jda - package xyz.dynxsty.dih4jda
-
Root package of Dynxsty's Interaction Handler for JDA.
- xyz.dynxsty.dih4jda.config - package xyz.dynxsty.dih4jda.config
-
Contains configuration classes
DIH4JDAuses. - xyz.dynxsty.dih4jda.events - package xyz.dynxsty.dih4jda.events
-
The core events that are fired by this library, which inform the end-user about states of the registered commands.
- xyz.dynxsty.dih4jda.exceptions - package xyz.dynxsty.dih4jda.exceptions
-
Contains custom exceptions DIH4JDA uses.
- xyz.dynxsty.dih4jda.interactions - package xyz.dynxsty.dih4jda.interactions
-
Used for all kinds of stuff regarding interactions.
- xyz.dynxsty.dih4jda.interactions.commands - package xyz.dynxsty.dih4jda.interactions.commands
-
Contains model-classes for all command types this framework supports.
- xyz.dynxsty.dih4jda.interactions.commands.application - package xyz.dynxsty.dih4jda.interactions.commands.application
-
Contains various types of model-classes for discords' Application Commands.
- xyz.dynxsty.dih4jda.interactions.components - package xyz.dynxsty.dih4jda.interactions.components
-
Contains handler-classes that are used to handle JDA interactions and components.
- xyz.dynxsty.dih4jda.util - package xyz.dynxsty.dih4jda.util
-
The package for utility classes that are used directly by
DIH4JDA, by the user or both.
All Classes and Interfaces|All Packages|Serialized Form