Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addButtonHandlers(Map<List<String>, ButtonHandler>) - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Binds all
ButtonHandlers to their id. - addContextCommands(ContextCommand...) - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Manually registers
ContextCommands. - addEntitySelectMenuHandlers(Map<List<String>, 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 add Listener classes (that implements
DIH4JDAEventListener). - addModalHandlers(Map<List<String>, 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. - addStringSelectMenuHandlers(Map<List<String>, StringSelectMenuHandler>) - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Binds all
StringSelectMenuHandlers to their id. - addSubcommandGroups(Map<SubcommandGroupData, Set<SlashCommand.Subcommand>>) - Method in class xyz.dynxsty.dih4jda.interactions.commands.SlashCommand
-
Sets all Subcommand Groups that belong to this "base" command.
- addSubcommands(SlashCommand.Subcommand...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.SlashCommand
-
Sets all Subcommands that belong to this "base" command.
- AutoCompletable - Interface in xyz.dynxsty.dih4jda.interactions.commands
-
Interface for commands that handle the
CommandAutoCompleteInteractionEvent. - AUTOCOMPLETE_EXCEPTION - Enum constant in enum class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
- AutoCompleteUtils - Class in xyz.dynxsty.dih4jda.util
-
Utility class that contains some useful methods regarding the AutoComplete system.
B
- BaseCommandRequirements - Class in xyz.dynxsty.dih4jda.interactions.commands
-
Represents a single, executable command.
- BaseCommandRequirements() - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.BaseCommandRequirements
- blacklistGuilds(Long...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.BaseCommandRequirements
-
Prevents the given set of
Guilds from updating their Slash Commands. - build() - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Returns a
DIH4JDAinstance that has been validated. - build(String, Object...) - Static method in class xyz.dynxsty.dih4jda.interactions.ComponentIdBuilder
-
Builds a component-id using the (set) separator and the given identifier and arguments.
- buildCacheId(CommandAutoCompleteInteractionEvent) - Static method in class xyz.dynxsty.dih4jda.util.AutoCompleteUtils
-
Builds an identifier from the specified
CommandAutoCompleteInteractionEventby combining the command path, the user's id, the guild's id (or simply "0" if the guild is null) and the option's name. - 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
C
- cacheChoices(CommandAutoCompleteInteractionEvent, List<Command.Choice>) - Static method in class xyz.dynxsty.dih4jda.util.AutoCompleteUtils
-
Caches the given list of choices.
- 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
- COMMAND_EXCEPTION - Enum constant in enum class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
- CommandNotRegisteredException - Exception Class in xyz.dynxsty.dih4jda.exceptions
- CommandNotRegisteredException(String) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.CommandNotRegisteredException
- CommandNotRegisteredException(String, Throwable) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.CommandNotRegisteredException
- CommandRequirements - Class in xyz.dynxsty.dih4jda.interactions.commands
-
Allows to set requirements that must be met in order to execute the command.
- CommandRequirements() - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.CommandRequirements
- 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.
- COMPONENT_EXCEPTION - Enum constant in enum class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
- ComponentIdBuilder - Class in xyz.dynxsty.dih4jda.interactions
-
Utility class that allows for easy and consistent Component-ID building.
- 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 - Class in xyz.dynxsty.dih4jda.interactions.commands
-
Model class which represents a single Context Command.
- ContextCommand.Message - Class in xyz.dynxsty.dih4jda.interactions.commands
- ContextCommand.User - Class in xyz.dynxsty.dih4jda.interactions.commands
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
- defaultCommandType - Static variable in class xyz.dynxsty.dih4jda.DIH4JDA
-
The default
RegistrationTypewhich is used for queuing new commands. - DIH4JDA - Class in xyz.dynxsty.dih4jda
-
DIH4JDA
- DIH4JDABuilder - Class in xyz.dynxsty.dih4jda
-
Builder-System used to build
DIH4JDA. - DIH4JDAConfig - Class in xyz.dynxsty.dih4jda.config
-
Simple data class which represents the config of a single
DIH4JDAinstance. - DIH4JDAConfig() - Constructor for class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- DIH4JDAEvent - Enum Class in xyz.dynxsty.dih4jda.events
- DIH4JDAEventListener - Interface in xyz.dynxsty.dih4jda.events
- DIH4JDAException - Exception Class in xyz.dynxsty.dih4jda.exceptions
-
Exception that is thrown for everything that is related to DIH4JDA.
- DIH4JDAException(String) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.DIH4JDAException
- DIH4JDAException(String, Throwable) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.DIH4JDAException
- DIH4JDAException(Throwable) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.DIH4JDAException
- DIH4JDALogger - Class in xyz.dynxsty.dih4jda
-
This handler's own Logging System.
- DIH4JDALogger() - Constructor for class xyz.dynxsty.dih4jda.DIH4JDALogger
- DIH4JDALogger.Type - Enum Class in xyz.dynxsty.dih4jda
- 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
- 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 the printing of stacktrace if an exception happens and there is no event listener registered.
- disableUnknownCommandDeletion() - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Disables deletion of unknown/unused commands when 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
- equals(CommandData, CommandData, boolean) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Compares two
CommandData(Context Command) objects. - equals(OptionData, OptionData) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Compares two
OptionDataobjects. - equals(SlashCommandData, SlashCommandData, boolean) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Compares two
SlashCommandData(Slash Command) objects. - equals(SubcommandData, SubcommandData) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Compares two
SubcommandDataobjects. - equals(SubcommandGroupData, SubcommandGroupData) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Compares two
SubcommandGroupDataobjects. - equals(DefaultMemberPermissions, DefaultMemberPermissions) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Compares two
DefaultMemberPermissionsobjects. - 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_FIRED - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- execute(MessageContextInteractionEvent) - Method in class xyz.dynxsty.dih4jda.interactions.commands.ContextCommand.Message
-
Abstract method that must be implemented for all Message Context Commands.
- execute(SlashCommandInteractionEvent) - Method in class xyz.dynxsty.dih4jda.interactions.commands.SlashCommand
-
Method that should be overridden for all Slash Commands that should be executed.
- execute(SlashCommandInteractionEvent) - Method in class xyz.dynxsty.dih4jda.interactions.commands.SlashCommand.Subcommand
-
Method that should be overridden for all Slash Commands that should be executed.
- execute(UserContextInteractionEvent) - Method in class xyz.dynxsty.dih4jda.interactions.commands.ContextCommand.User
-
Abstract method that must be implemented for all User Context Commands.
F
- filterByType(Pair<Set<UnqueuedSlashCommandData>, Set<UnqueuedCommandData>>, 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(CommandAutoCompleteInteractionEvent, List<Command.Choice>) - Static method in class xyz.dynxsty.dih4jda.util.AutoCompleteUtils
-
Filters all AutoComplete choices based on the user's current input.
- fire(Set<DIH4JDAEventListener>, DIH4JDA, Object...) - Method in enum 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.
- getBlockedLogTypes() - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- getButtonHandlers() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Gets all
ButtonHandlers. - getClassLoaderForClass(Class<?>) - Static method in class xyz.dynxsty.dih4jda.util.IoUtil
-
Tries to get the classloader for the given class.
- getCommandData() - Method in class xyz.dynxsty.dih4jda.interactions.commands.ContextCommand
- getCommandPackages() - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- getConfig() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
- getData() - Method in class xyz.dynxsty.dih4jda.interactions.commands.model.UnqueuedCommandData
- getData() - Method in class xyz.dynxsty.dih4jda.interactions.commands.model.UnqueuedSlashCommandData
- getEntitySelectMenuHandlers() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Gets all registered
EntitySelectMenuHandlers. - getExecutor() - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- getFirst() - Method in class xyz.dynxsty.dih4jda.util.Pair
- getFromCache(String) - Static method in class xyz.dynxsty.dih4jda.util.AutoCompleteUtils
-
Attempts to get a
ListofCommand.Choices, based on the specified id. - getGuilds() - Method in class xyz.dynxsty.dih4jda.interactions.commands.model.UnqueuedCommandData
- getGuilds() - Method in class xyz.dynxsty.dih4jda.interactions.commands.model.UnqueuedSlashCommandData
- getGuilds(JDA) - Method in class xyz.dynxsty.dih4jda.interactions.commands.BaseCommandRequirements
-
Gets all Guilds whose Slash Commands should be updated.
- getInstance(Class<?>) - Static method in class xyz.dynxsty.dih4jda.util.ClassUtils
-
Creates a new Instance of the given class.
- getJDA() - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- getJDA() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Convenience method which replaces}
invalid @link
{@link DIH4JDA#getConfig()#getJDA() - getModalHandlers() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Gets all
ModalHandlers. - getNames(Set<UnqueuedCommandData>, Set<UnqueuedSlashCommandData>) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Builds a formatted string out of the given sets of CommandData.
- getRegistrationType() - Method in class xyz.dynxsty.dih4jda.interactions.commands.BaseCommandRequirements
- getRequiredPermissions() - Method in class xyz.dynxsty.dih4jda.interactions.commands.CommandRequirements
- getRequiredRoles() - Method in class xyz.dynxsty.dih4jda.interactions.commands.CommandRequirements
- getRequiredUsers() - Method in class xyz.dynxsty.dih4jda.interactions.commands.CommandRequirements
- getSecond() - Method in class xyz.dynxsty.dih4jda.util.Pair
- getSeparator() - Static method in class xyz.dynxsty.dih4jda.interactions.ComponentIdBuilder
-
Gets the current separator.
- getSlashCommandData() - Method in class xyz.dynxsty.dih4jda.interactions.commands.SlashCommand
- getStringSelectMenuHandlers() - Method in class xyz.dynxsty.dih4jda.DIH4JDA
-
Gets all registered
StringSelectMenuHandlers. - getSubcommandData() - Method in class xyz.dynxsty.dih4jda.interactions.commands.SlashCommand.Subcommand
- getSubcommandGroups() - Method in class xyz.dynxsty.dih4jda.interactions.commands.SlashCommand
- getSubcommands() - Method in class xyz.dynxsty.dih4jda.interactions.commands.SlashCommand
- 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.
- getType() - Method in class xyz.dynxsty.dih4jda.interactions.commands.model.UnqueuedCommandData
- getType() - Method in class xyz.dynxsty.dih4jda.interactions.commands.model.UnqueuedSlashCommandData
- GLOBAL - Enum constant in enum class xyz.dynxsty.dih4jda.interactions.commands.RegistrationType
- GUILD - Enum constant in enum class xyz.dynxsty.dih4jda.interactions.commands.RegistrationType
H
- handleAutoComplete(CommandAutoCompleteInteractionEvent, AutoCompleteQuery) - Method in interface xyz.dynxsty.dih4jda.interactions.commands.AutoCompletable
- handleButton(ButtonInteractionEvent, Button) - Method in interface xyz.dynxsty.dih4jda.interactions.components.ButtonHandler
-
Method that must be overridden for all Commands that handle Button Interactions.
- handleChoices(CommandAutoCompleteInteractionEvent, Function<CommandAutoCompleteInteractionEvent, List<Command.Choice>>) - Static method in class xyz.dynxsty.dih4jda.util.AutoCompleteUtils
-
A simple shortcut for caching AutoComplete Choices.
- handleEntitySelectMenu(EntitySelectInteractionEvent, List<IMentionable>) - Method in interface xyz.dynxsty.dih4jda.interactions.components.EntitySelectMenuHandler
-
Method that must be overriden for all classes that handle
EntitySelectInteractionAll select menus that match the identifier will execute this class's implementation of theEntitySelectMenuHandler.handleEntitySelectMenu(EntitySelectInteractionEvent, List)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.
I
- 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
- INSUFFICIENT_PERMISSIONS - Enum constant in enum class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
- InteractionHandler - Class in xyz.dynxsty.dih4jda
-
The Handler class, that finds, registers and handles all Commands and other Interactions.
- INVALID_ROLE - Enum constant in enum class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
- INVALID_USER - Enum constant in enum class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
- InvalidCommandException - Exception Class in xyz.dynxsty.dih4jda.exceptions
- InvalidCommandException(String) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.InvalidCommandException
- InvalidCommandException(String, Throwable) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.InvalidCommandException
- 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
- InvalidPackageException(String, Throwable) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.InvalidPackageException
- InvalidTypeException - Exception Class in xyz.dynxsty.dih4jda.exceptions
-
Exception that is thrown for an invalid slash command type configuration.
- InvalidTypeException(String) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.InvalidTypeException
- InvalidTypeException(String, Throwable) - Constructor for exception class xyz.dynxsty.dih4jda.exceptions.InvalidTypeException
- IoUtil - Class in xyz.dynxsty.dih4jda.util
-
Utility class that contains some useful methods regarding the IO.
- isDefaultPrintStacktrace() - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- isDeleteUnknownCommands() - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- isEqual(Command, Object, boolean) - Static method in class xyz.dynxsty.dih4jda.util.CommandUtils
-
Checks if the
Commandis equal to the givenCommandData. - isGlobalSmartQueue() - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- isGuildSmartQueue() - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- isRegisterOnReady() - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- isThrowUnregisteredException() - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
M
- Message() - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.ContextCommand.Message
- MODAL_EXCEPTION - Enum constant in enum class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
- MODAL_NOT_FOUND - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- ModalHandler - Interface in xyz.dynxsty.dih4jda.interactions.components
O
- onAutoCompleteException(CommandAutoCompleteInteraction, Exception) - 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. - onCommandException(CommandInteraction, Exception) - Method in interface xyz.dynxsty.dih4jda.events.DIH4JDAEventListener
-
An Event that gets fired when an exception gets raised while executing any Command.
- onComponentException(ComponentInteraction, Exception) - 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(CommandInteraction, Set<Permission>) - 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.
- onInvalidRole(CommandInteraction, Set<Long>) - 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(CommandInteraction, Set<Long>) - 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(ModalInteraction, Exception) - 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
-
Whether the command should be queued as a global- or as a guild command.
- removeFromCache(String, String, String) - Static method in class xyz.dynxsty.dih4jda.util.AutoCompleteUtils
-
Removes all cached choices for the given command, user invalid input: '&' guild.
- requirePermissions(Permission...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.CommandRequirements
-
Allows to require a set of
Permissions which are needed to execute the corresponding command. - requireRoles(Long...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.CommandRequirements
-
Allows to require a set of
Longs (role Ids) which are able to execute the corresponding command. - requireUsers(Long...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.CommandRequirements
-
Allows to require a set of
Longs (user Ids) which are able to execute the corresponding command.
S
- SELECT_MENU_NOT_FOUND - Enum constant in enum class xyz.dynxsty.dih4jda.DIH4JDALogger.Type
- setBlockedLogTypes(Set<DIH4JDALogger.Type>) - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- setCommandData(CommandData) - Method in class xyz.dynxsty.dih4jda.interactions.commands.ContextCommand
-
Sets this commands'
CommandData. - setCommandPackages(String...) - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- setCommandPackages(String...) - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Sets the packages that house all Command classes.
- setDefaultCommandType(RegistrationType) - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Sets the default
RegistrationTypefor all Commands. - setDefaultPrintStacktrace(boolean) - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- setDefaultSeparator(String) - Static method in class xyz.dynxsty.dih4jda.interactions.ComponentIdBuilder
-
Changes the default component-id separator.
- setDeleteUnknownCommands(boolean) - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- setExecutor(Executor) - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- setExecutor(Executor) - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Sets the Executor that will be used to execute all commands and events.
- setGlobalSmartQueue(boolean) - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- setGlobalSmartQueue(boolean) - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
NOT RECOMMENDED (unless there are some bugs)
This will disable the GLOBAL Smart Queueing functionality. - setGuilds(Set<Guild>) - Method in class xyz.dynxsty.dih4jda.interactions.commands.model.UnqueuedCommandData
- setGuilds(Set<Guild>) - Method in class xyz.dynxsty.dih4jda.interactions.commands.model.UnqueuedSlashCommandData
- setGuildSmartQueue(boolean) - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- setGuildSmartQueue(boolean) - Method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
This will disable the GUILD Smart Queueing functionality.
- setJDA(JDA) - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- setJDA(JDA) - Static method in class xyz.dynxsty.dih4jda.DIH4JDABuilder
-
Sets the
JDAinstance the handler will be used for. - setRegisterOnReady(boolean) - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- setRegistrationType(RegistrationType) - Method in class xyz.dynxsty.dih4jda.interactions.commands.BaseCommandRequirements
- setSlashCommandData(SlashCommandData) - Method in class xyz.dynxsty.dih4jda.interactions.commands.SlashCommand
-
Sets this commands'
SlashCommandData. - setSubcommandData(SubcommandData) - Method in class xyz.dynxsty.dih4jda.interactions.commands.SlashCommand.Subcommand
-
Sets this subcommands'
SubcommandData. - setThrowUnregisteredException(boolean) - Method in class xyz.dynxsty.dih4jda.config.DIH4JDAConfig
- 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
-
Represents a single Slash Command.
- SlashCommand.Subcommand - Class in xyz.dynxsty.dih4jda.interactions.commands
-
Model class which represents a single Subcommand.
- 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
- split(String) - Static method in class xyz.dynxsty.dih4jda.interactions.ComponentIdBuilder
-
Splits the given id by the current separator.
- StringSelectMenuHandler - Interface in xyz.dynxsty.dih4jda.interactions.components
- Subcommand() - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.SlashCommand.Subcommand
T
- toString() - Method in enum class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
- 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
- UnqueuedCommandData - Class in xyz.dynxsty.dih4jda.interactions.commands.model
-
Model class which holds the
CommandDataand it'sRegistrationType. - UnqueuedCommandData(CommandData, RegistrationType) - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.model.UnqueuedCommandData
- UnqueuedSlashCommandData - Class in xyz.dynxsty.dih4jda.interactions.commands.model
-
Model class which holds the
SlashCommandDataand it'sRegistrationType. - UnqueuedSlashCommandData(SlashCommandData, RegistrationType) - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.model.UnqueuedSlashCommandData
- User() - Constructor for class xyz.dynxsty.dih4jda.interactions.commands.ContextCommand.User
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.events.DIH4JDAEvent
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class xyz.dynxsty.dih4jda.interactions.commands.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.events.DIH4JDAEvent
-
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.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
- whitelistGuilds(Long...) - Method in class xyz.dynxsty.dih4jda.interactions.commands.BaseCommandRequirements
-
Allows a set of
Guilds to update their Slash Commands.
X
- xyz.dynxsty.dih4jda - package xyz.dynxsty.dih4jda
- xyz.dynxsty.dih4jda.config - package xyz.dynxsty.dih4jda.config
- xyz.dynxsty.dih4jda.events - package xyz.dynxsty.dih4jda.events
- xyz.dynxsty.dih4jda.exceptions - package xyz.dynxsty.dih4jda.exceptions
- xyz.dynxsty.dih4jda.interactions - package xyz.dynxsty.dih4jda.interactions
- xyz.dynxsty.dih4jda.interactions.commands - package xyz.dynxsty.dih4jda.interactions.commands
- xyz.dynxsty.dih4jda.interactions.commands.model - package xyz.dynxsty.dih4jda.interactions.commands.model
- xyz.dynxsty.dih4jda.interactions.components - package xyz.dynxsty.dih4jda.interactions.components
- xyz.dynxsty.dih4jda.util - package xyz.dynxsty.dih4jda.util
All Classes and Interfaces|All Packages|Serialized Form