Index

A B C D E G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

ActivityContext - Class in com.dianxin.tori.api.utils.quicksetup
A utility class for parsing and constructing JDA Activity instances from raw strings.
addRequiredPermissions(Permission...) - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
Adds one or more Discord permissions that the user invoking the command must possess.
addSelfPermissions(Permission...) - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
Adds one or more Discord permissions that the bot itself must possess to handle the command.
aliases() - Element in annotation interface com.dianxin.tori.api.annotations.commands.TextCommand
An optional array of alternative names that can also be used to trigger this command.
AudioMixerSendHandler - Class in com.dianxin.tori.api.lavaplayer
Audio mixer handler that combines multiple Lavaplayer audio sources into a single audio stream for Discord transmission.
AudioMixerSendHandler() - Constructor for class com.dianxin.tori.api.lavaplayer.AudioMixerSendHandler
 
avatarId(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the ID hash of the user's custom avatar.
avatarLink(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the URL of the user's custom avatar.

B

bannerId(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Retrieves the ID hash of the user's profile banner.
bannerLink(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Retrieves the URL of the user's profile banner.
BaseCommand - Class in com.dianxin.tori.api.commands.slash
A statically optimized version of ModernBaseCommand.
BaseCommand(JDA, IBotMeta, boolean, boolean, boolean, boolean, boolean, List<Permission>, List<Permission>, boolean) - Constructor for class com.dianxin.tori.api.commands.slash.BaseCommand
Constructs a statically configured BaseCommand.
BaseCommand(JDA, IBotMeta, LegacyCommandBuilder) - Constructor for class com.dianxin.tori.api.commands.slash.BaseCommand
Constructs a BaseCommand using the LegacyCommandBuilder.
BaseMessageContextMenu - Class in com.dianxin.tori.api.commands.messagecontext
An abstract base class for statically configured Message Context Menus.
BaseMessageContextMenu(String, JDA, IBotMeta, boolean, boolean, boolean, boolean, boolean, List<Permission>, List<Permission>, boolean) - Constructor for class com.dianxin.tori.api.commands.messagecontext.BaseMessageContextMenu
Constructs a statically configured BaseMessageContextMenu with explicit parameters.
BaseMessageContextMenu(String, JDA, IBotMeta, LegacyCommandBuilder) - Constructor for class com.dianxin.tori.api.commands.messagecontext.BaseMessageContextMenu
Constructs a statically configured BaseMessageContextMenu using a LegacyCommandBuilder.
BaseTextCommand - Class in com.dianxin.tori.api.commands.text
A statically configured base class for legacy text commands.
BaseTextCommand(String, List<String>, JDA, IBotMeta, boolean, boolean, boolean, boolean, List<Permission>, List<Permission>, boolean) - Constructor for class com.dianxin.tori.api.commands.text.BaseTextCommand
 
BaseTextCommand(String, List<String>, JDA, IBotMeta, LegacyCommandBuilder) - Constructor for class com.dianxin.tori.api.commands.text.BaseTextCommand
 
BaseUserContextMenu - Class in com.dianxin.tori.api.commands.usercontext
An abstract base class for statically configured User Context Menus.
BaseUserContextMenu(String, JDA, IBotMeta, boolean, boolean, boolean, boolean, boolean, List<Permission>, List<Permission>, boolean) - Constructor for class com.dianxin.tori.api.commands.usercontext.BaseUserContextMenu
Constructs a statically configured BaseUserContextMenu with explicit parameters.
BaseUserContextMenu(String, JDA, IBotMeta, LegacyCommandBuilder) - Constructor for class com.dianxin.tori.api.commands.usercontext.BaseUserContextMenu
Constructs a statically configured BaseUserContextMenu using a LegacyCommandBuilder.
botAuthor() - Method in interface com.dianxin.tori.api.bot.IBotMeta
Gets the name of the primary author or developer of the bot.
botContributors() - Method in interface com.dianxin.tori.api.bot.IBotMeta
Gets a list of additional contributors who helped develop the bot.
botDescription() - Method in interface com.dianxin.tori.api.bot.IBotMeta
Gets a brief description of what the bot does.
botName() - Method in interface com.dianxin.tori.api.bot.IBotMeta
Gets the name of the bot.
botOwnerId() - Method in interface com.dianxin.tori.api.bot.IBotMeta
Gets the Discord User ID of the bot's primary owner.
botVersion() - Method in interface com.dianxin.tori.api.bot.IBotMeta
Gets the current version of the bot.
botWebsite() - Method in interface com.dianxin.tori.api.bot.IBotMeta
Gets the official website or promotional page for the bot.
builder() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Creates and configures the JDABuilder with the bot's intents, activity, and audio module config.

C

canProvide() - Method in class com.dianxin.tori.api.lavaplayer.AudioMixerSendHandler
 
ChannelUtils - Class in com.dianxin.tori.api.utils.jda
A utility class providing convenient methods to retrieve JDA Channel objects from the internal cache.
checkCompatibilityOrThrow() - Static method in class com.dianxin.tori.api.controller.VersionController
Checks if the currently running Java version meets the minimum required version.
checkJavaVersionForJDaveOrThrow() - Static method in class com.dianxin.tori.api.controller.VersionController
Checks if the currently running Java version meets the minimum required version for JDave support.
checkJDACompatibilityOrThrow() - Static method in class com.dianxin.tori.api.controller.VersionController
Checks if the currently implemented JDA version meets the minimum required version.
com.dianxin.tori.api - package com.dianxin.tori.api
 
com.dianxin.tori.api.annotations.commands - package com.dianxin.tori.api.annotations.commands
 
com.dianxin.tori.api.annotations.contextmenu - package com.dianxin.tori.api.annotations.contextmenu
 
com.dianxin.tori.api.base - package com.dianxin.tori.api.base
 
com.dianxin.tori.api.bootstrap - package com.dianxin.tori.api.bootstrap
 
com.dianxin.tori.api.bot - package com.dianxin.tori.api.bot
 
com.dianxin.tori.api.commands - package com.dianxin.tori.api.commands
 
com.dianxin.tori.api.commands.messagecontext - package com.dianxin.tori.api.commands.messagecontext
 
com.dianxin.tori.api.commands.registry - package com.dianxin.tori.api.commands.registry
 
com.dianxin.tori.api.commands.slash - package com.dianxin.tori.api.commands.slash
 
com.dianxin.tori.api.commands.text - package com.dianxin.tori.api.commands.text
 
com.dianxin.tori.api.commands.usercontext - package com.dianxin.tori.api.commands.usercontext
 
com.dianxin.tori.api.config - package com.dianxin.tori.api.config
 
com.dianxin.tori.api.controller - package com.dianxin.tori.api.controller
 
com.dianxin.tori.api.exceptions - package com.dianxin.tori.api.exceptions
 
com.dianxin.tori.api.interaction - package com.dianxin.tori.api.interaction
 
com.dianxin.tori.api.lavaplayer - package com.dianxin.tori.api.lavaplayer
 
com.dianxin.tori.api.utils - package com.dianxin.tori.api.utils
 
com.dianxin.tori.api.utils.jda - package com.dianxin.tori.api.utils.jda
 
com.dianxin.tori.api.utils.quicksetup - package com.dianxin.tori.api.utils.quicksetup
 
commandName() - Element in annotation interface com.dianxin.tori.api.annotations.commands.TextCommand
The primary name used to trigger this command.
CommandRegistrar - Class in com.dianxin.tori.api.commands
The central registrar for all Discord interactions including Slash Commands, User Context Menus, and Message Context Menus.
CommandRegistrar(JavaDiscordBot) - Constructor for class com.dianxin.tori.api.commands.CommandRegistrar
 
CommandReplyConfig - Interface in com.dianxin.tori.api.commands
Configuration interface for customizing the rejection messages sent by the command registrar.
commitAllCommands(Guild) - Method in class com.dianxin.tori.api.commands.CommandRegistrar
Commits all registered commands (Slash, User Context, Message Context) to the Discord API.
ComponentRegistrar - Class in com.dianxin.tori.api.interaction
A registry class responsible for managing and routing Discord UI Component interactions such as Buttons, String Select Menus, and Entity Select Menus.
ComponentRegistrar(JavaDiscordBot) - Constructor for class com.dianxin.tori.api.interaction.ComponentRegistrar
Constructs a new ComponentRegistrar for the specified bot.
Constants - Class in com.dianxin.tori.api.base
 
ContextMenu - Annotation Interface in com.dianxin.tori.api.annotations.contextmenu
Indicates that the annotated class serves as a Context Menu command.
createdTime(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the exact time the user's Discord account was created.

D

DebugCommand - Annotation Interface in com.dianxin.tori.api.annotations.commands
Indicates that the annotated command is intended for debugging purposes.
debugTag(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets a formatted string useful for logging or debugging, combining the user's display name and ID.
defaultAvatarId(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the identifier for the user's default Discord avatar.
defaultAvatarLink(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the URL of the user's default Discord avatar.
DefaultEnglishReplyConfig - Class in com.dianxin.tori.api.commands
The default English implementation of CommandReplyConfig.
DefaultEnglishReplyConfig() - Constructor for class com.dianxin.tori.api.commands.DefaultEnglishReplyConfig
 
deferAndOnlyGuild() - Static method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
A convenience factory method to create a builder pre-configured to automatically defer the reply and restrict the command execution strictly to Discord guilds.
DeferReply - Annotation Interface in com.dianxin.tori.api.annotations.commands
Indicates that the framework should automatically defer the reply for the annotated command.
DirectMessageOnly - Annotation Interface in com.dianxin.tori.api.annotations.commands
Restricts the execution of the annotated command to Direct Messages (DMs) only.
disableBot(String) - Method in interface com.dianxin.tori.api.bot.IBotLoader
Gracefully shuts down and removes a bot from the active bots list.
displayName(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the effective display name of the user.

E

effectiveAvatarLink(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the effective avatar URL for the user.
enableBot(String) - Method in interface com.dianxin.tori.api.bot.IBotLoader
Dynamically loads and starts a bot from a JAR file at runtime.
ExceptionUtils - Class in com.dianxin.tori.api.utils
Utility class for sanitizing and formatting exception stack traces.
execute(MessageContextInteractionEvent) - Method in class com.dianxin.tori.api.commands.messagecontext.BaseMessageContextMenu
The core execution logic of the message context menu command.
execute(MessageContextInteractionEvent) - Method in class com.dianxin.tori.api.commands.messagecontext.ModernBaseMessageContextMenu
The core execution logic of the message context menu command.
execute(SlashCommandInteractionEvent) - Method in class com.dianxin.tori.api.commands.slash.BaseCommand
The core execution logic of the command.
execute(SlashCommandInteractionEvent) - Method in class com.dianxin.tori.api.commands.slash.ModernBaseCommand
The core execution logic of the command.
execute(UserContextInteractionEvent) - Method in class com.dianxin.tori.api.commands.usercontext.BaseUserContextMenu
The core execution logic of the user context menu command.
execute(UserContextInteractionEvent) - Method in class com.dianxin.tori.api.commands.usercontext.ModernBaseUserContextMenu
The core execution logic of the user context menu command.
execute(ButtonInteractionEvent) - Method in interface com.dianxin.tori.api.interaction.IButtonHandler
Executes the specific logic when the associated button is clicked.
execute(EntitySelectInteractionEvent) - Method in interface com.dianxin.tori.api.interaction.IEntitySelectMenuHandler
Executes the specific logic when an entity is selected from the menu.
execute(StringSelectInteractionEvent) - Method in interface com.dianxin.tori.api.interaction.IStringSelectMenuHandler
Executes the specific logic when a string option is selected from the menu.
execute(ModalInteractionEvent) - Method in interface com.dianxin.tori.api.interaction.IModalHandler
Executes the specific logic when the modal is submitted.
execute(MessageReceivedEvent, String[]) - Method in class com.dianxin.tori.api.commands.text.BaseTextCommand
The core execution logic of the text command.
execute(MessageReceivedEvent, String[]) - Method in class com.dianxin.tori.api.commands.text.ModernBaseTextCommand
The core execution logic of the text command.

G

getActiveBots() - Method in interface com.dianxin.tori.api.bot.IBotLoader
Retrieves a list of all bot instances that are currently running on the server.
getActivity() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Defines the bot's presence/activity shown on Discord.
getAliases() - Method in class com.dianxin.tori.api.commands.text.BaseTextCommand
 
getAllIntents() - Static method in class com.dianxin.tori.api.utils.quicksetup.IntentContext
Retrieves an EnumSet containing every available GatewayIntent.
getAudioModuleConfig() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Provides dave session if available.
getBaseBot() - Method in class com.dianxin.tori.api.interaction.ComponentRegistrar
Gets the base bot instance associated with this registrar.
getBaseBot() - Method in class com.dianxin.tori.api.interaction.ModalRegistrar
Gets the base bot instance associated with this registrar.
getBotInviteLink() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
 
getBotInviteLink(Permission...) - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
 
getBotLoader() - Static method in class com.dianxin.tori.api.ToriProvider
Retrieves the bot loader responsible for loading and managing bots.
getBotLoader() - Method in interface com.dianxin.tori.api.ToriServer
Gets the bot loader system.
getBotToken() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Provides the bot token required for authentication with Discord.
getButton() - Method in interface com.dianxin.tori.api.interaction.IButtonHandler
Gets the Discord Button component associated with this handler.
getCachedUser(String) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Retrieves a user by their ID directly from the internal JDA cache.
getChannelById(String) - Static method in class com.dianxin.tori.api.utils.jda.ChannelUtils
Retrieves a generic Channel by its snowflake ID from the JDA cache.
getCommand() - Method in interface com.dianxin.tori.api.commands.registry.MaincommandRegistry
Gets the command data required for registering this main command with Discord.
getCommandName() - Method in class com.dianxin.tori.api.commands.text.BaseTextCommand
 
getCommandNotFoundMessage() - Method in interface com.dianxin.tori.api.commands.CommandReplyConfig
 
getCommandNotFoundMessage() - Method in class com.dianxin.tori.api.commands.DefaultEnglishReplyConfig
 
getConfig() - Method in interface com.dianxin.tori.api.config.ServerConfiguration
Retrieves the underlying raw configuration file data.
getConfig() - Static method in class com.dianxin.tori.api.ToriProvider
Retrieves the global configuration of the server.
getConfig() - Method in interface com.dianxin.tori.api.ToriServer
Gets the configuration settings of the server.
getConsoleCommandManager() - Static method in class com.dianxin.tori.api.ToriProvider
Retrieves the manager responsible for handling terminal console commands.
getConsoleCommandManager() - Method in interface com.dianxin.tori.api.ToriServer
Gets the console command manager.
getDataFolder() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
 
getDefaultIntents() - Static method in class com.dianxin.tori.api.utils.quicksetup.IntentContext
Retrieves a standard, commonly used set of default GatewayIntents.
getDmOnlyMessage() - Method in interface com.dianxin.tori.api.commands.CommandReplyConfig
 
getDmOnlyMessage() - Method in class com.dianxin.tori.api.commands.DefaultEnglishReplyConfig
 
getEntitySelectMenu() - Method in interface com.dianxin.tori.api.interaction.IEntitySelectMenuHandler
Gets the Discord Entity Select Menu component associated with this handler.
getEntitySelectMenu(String) - Method in class com.dianxin.tori.api.interaction.ComponentRegistrar
Retrieves a registered Entity Select Menu by its custom ID.
getGuildOnlyMessage() - Method in interface com.dianxin.tori.api.commands.CommandReplyConfig
 
getGuildOnlyMessage() - Method in class com.dianxin.tori.api.commands.DefaultEnglishReplyConfig
 
getInstance() - Static method in class com.dianxin.tori.api.utils.ExceptionUtils
Retrieves the singleton instance of ExceptionUtils.
getIntents() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Provides the list of gateway intents required for the bot.
getJda() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
The JDA instance representing the bot connection.
getJda() - Method in class com.dianxin.tori.api.commands.messagecontext.BaseMessageContextMenu
Retrieves the JDA instance associated with this command.
getJda() - Method in class com.dianxin.tori.api.commands.messagecontext.ModernBaseMessageContextMenu
Retrieves the JDA instance associated with this command.
getJda() - Method in class com.dianxin.tori.api.commands.slash.BaseCommand
 
getJda() - Method in class com.dianxin.tori.api.commands.slash.ModernBaseCommand
 
getJda() - Method in class com.dianxin.tori.api.commands.text.BaseTextCommand
Retrieves the JDA instance associated with this command.
getJda() - Method in class com.dianxin.tori.api.commands.text.ModernBaseTextCommand
Retrieves the JDA instance associated with this command.
getJda() - Method in class com.dianxin.tori.api.commands.usercontext.BaseUserContextMenu
Retrieves the JDA instance associated with this command.
getJda() - Method in class com.dianxin.tori.api.commands.usercontext.ModernBaseUserContextMenu
Retrieves the JDA instance associated with this command.
getJda() - Method in class com.dianxin.tori.api.interaction.ComponentRegistrar
Gets the JDA instance associated with this registrar.
getJda() - Method in class com.dianxin.tori.api.interaction.ModalRegistrar
Gets the JDA instance associated with this registrar.
getJdaVersionImplemented() - Static method in class com.dianxin.tori.api.controller.VersionController
Retrieves the version of JDA (Java Discord API) currently implemented at runtime.
getLogger() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Logger instance for this bot class.
getLogger() - Method in class com.dianxin.tori.api.commands.messagecontext.BaseMessageContextMenu
Retrieves the logger instance for the current command.
getLogger() - Method in class com.dianxin.tori.api.commands.messagecontext.ModernBaseMessageContextMenu
Retrieves the logger instance for the current command.
getLogger() - Method in class com.dianxin.tori.api.commands.slash.BaseCommand
 
getLogger() - Method in class com.dianxin.tori.api.commands.slash.ModernBaseCommand
 
getLogger() - Method in class com.dianxin.tori.api.commands.text.BaseTextCommand
Retrieves the logger instance for the current command.
getLogger() - Method in class com.dianxin.tori.api.commands.text.ModernBaseTextCommand
Retrieves the logger instance for the current command.
getLogger() - Method in class com.dianxin.tori.api.commands.usercontext.BaseUserContextMenu
Retrieves the logger instance for the current command.
getLogger() - Method in class com.dianxin.tori.api.commands.usercontext.ModernBaseUserContextMenu
Retrieves the logger instance for the current command.
getMeta() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
 
getMissingBotPermissionMessage(Permission) - Method in interface com.dianxin.tori.api.commands.CommandReplyConfig
 
getMissingBotPermissionMessage(Permission) - Method in class com.dianxin.tori.api.commands.DefaultEnglishReplyConfig
 
getMissingUserPermissionMessage(Permission) - Method in interface com.dianxin.tori.api.commands.CommandReplyConfig
 
getMissingUserPermissionMessage(Permission) - Method in class com.dianxin.tori.api.commands.DefaultEnglishReplyConfig
 
getModal() - Method in interface com.dianxin.tori.api.interaction.IModalHandler
Gets the Discord Modal component associated with this handler.
getModal(String) - Method in class com.dianxin.tori.api.interaction.ModalRegistrar
Retrieves a registered Discord Modal by its custom ID.
getOwnerOnlyMessage() - Method in interface com.dianxin.tori.api.commands.CommandReplyConfig
 
getOwnerOnlyMessage() - Method in class com.dianxin.tori.api.commands.DefaultEnglishReplyConfig
 
getPermissionsRequired() - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
 
getPrivateChannelOnlyMessage() - Method in interface com.dianxin.tori.api.commands.CommandReplyConfig
 
getPrivateChannelOnlyMessage() - Method in class com.dianxin.tori.api.commands.DefaultEnglishReplyConfig
 
getScheduler() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
 
getScheduler() - Static method in class com.dianxin.tori.api.ToriProvider
Retrieves the scheduler responsible for managing timed and scheduled tasks.
getScheduler() - Method in interface com.dianxin.tori.api.ToriServer
Gets the server's task scheduler.
getSelf() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
 
getSelfPermissionsRequired() - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
 
getStringSelectMenu() - Method in interface com.dianxin.tori.api.interaction.IStringSelectMenuHandler
Gets the Discord String Select Menu component associated with this handler.
getStringSelectMenu(String) - Method in class com.dianxin.tori.api.interaction.ComponentRegistrar
Retrieves a registered String Select Menu by its custom ID.
getSubcommand() - Method in interface com.dianxin.tori.api.commands.registry.SubcommandRegistry
Gets the subcommand data required for registering this subcommand with Discord.
getTextChannelById(String) - Static method in class com.dianxin.tori.api.utils.jda.ChannelUtils
Retrieves a specific TextChannel by its snowflake ID from the JDA cache.
getTitle() - Method in class com.dianxin.tori.api.commands.messagecontext.BaseMessageContextMenu
Retrieves the title of the context menu as shown in the Discord client.
getTitle() - Method in class com.dianxin.tori.api.commands.usercontext.BaseUserContextMenu
Retrieves the title of the context menu as shown in the Discord client.
getVoiceChannelById(String) - Static method in class com.dianxin.tori.api.utils.jda.ChannelUtils
Retrieves a specific VoiceChannel by its snowflake ID from the JDA cache.
globalName(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the global display name of the user, if they have set one.
guildAdminOnly() - Static method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
A convenience factory method to create a builder pre-configured to require the Permission.ADMINISTRATOR permission from the user.
GuildOnly - Annotation Interface in com.dianxin.tori.api.annotations.commands
Restricts the execution of the annotated command to Discord Guilds (Servers) only.

H

handle(MessageContextInteractionEvent, CommandReplyConfig) - Method in class com.dianxin.tori.api.commands.messagecontext.BaseMessageContextMenu
Handles the lifecycle and validation of the message context menu execution.
handle(MessageContextInteractionEvent, CommandReplyConfig) - Method in interface com.dianxin.tori.api.commands.messagecontext.IMessageContextMenu
Handles the incoming message context menu interaction.
handle(MessageContextInteractionEvent, CommandReplyConfig) - Method in class com.dianxin.tori.api.commands.messagecontext.ModernBaseMessageContextMenu
Handles the lifecycle and validation of the message context menu execution.
handle(SlashCommandInteractionEvent, CommandReplyConfig) - Method in class com.dianxin.tori.api.commands.slash.BaseCommand
Handles the lifecycle and validation of the command execution.
handle(SlashCommandInteractionEvent, CommandReplyConfig) - Method in interface com.dianxin.tori.api.commands.slash.ISlashCommand
Handles the incoming slash command interaction.
handle(SlashCommandInteractionEvent, CommandReplyConfig) - Method in class com.dianxin.tori.api.commands.slash.ModernBaseCommand
Handles the lifecycle and validation of the command execution.
handle(UserContextInteractionEvent, CommandReplyConfig) - Method in class com.dianxin.tori.api.commands.usercontext.BaseUserContextMenu
Handles the lifecycle and validation of the user context menu execution.
handle(UserContextInteractionEvent, CommandReplyConfig) - Method in interface com.dianxin.tori.api.commands.usercontext.IUserContextMenu
Handles the incoming user context menu interaction.
handle(UserContextInteractionEvent, CommandReplyConfig) - Method in class com.dianxin.tori.api.commands.usercontext.ModernBaseUserContextMenu
Handles the lifecycle and validation of the user context menu execution.
handle(MessageReceivedEvent, String[], CommandReplyConfig) - Method in class com.dianxin.tori.api.commands.text.BaseTextCommand
 
handle(MessageReceivedEvent, String[], CommandReplyConfig) - Method in interface com.dianxin.tori.api.commands.text.ITextCommand
Handles the incoming text command interaction.
handle(MessageReceivedEvent, String[], CommandReplyConfig) - Method in class com.dianxin.tori.api.commands.text.ModernBaseTextCommand
 
hasGlobalName(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Checks if the user has configured a global display name.
hasJDave() - Static method in class com.dianxin.tori.api.ToriProvider
Checks if the JDave Audio Encryption extension is available in the classpath.
hasJDave() - Method in interface com.dianxin.tori.api.ToriServer
Checks if the JDave Audio Encryption extension is available in the classpath.
hasPrivateChannel(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Checks if the bot currently has an open Private Channel (DM) with this user.
How it works - Search tag in class com.dianxin.tori.api.bootstrap.VirtualEnvironmentBootstrap
Section

I

IBotLoader - Interface in com.dianxin.tori.api.bot
An interface responsible for the lifecycle management and execution of bot files within the Tori Server environment.
IBotMeta - Interface in com.dianxin.tori.api.bot
Represents the metadata of a Discord bot running on the Tori Server.
IButtonHandler - Interface in com.dianxin.tori.api.interaction
Represents a handler for a specific Discord Button interaction.
id(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the snowflake ID of the user.
IEntitySelectMenuHandler - Interface in com.dianxin.tori.api.interaction
Represents a handler for a specific Discord Entity Select Menu interaction.
IMessageContextMenu - Interface in com.dianxin.tori.api.commands.messagecontext
The core interface for Message Context Menu commands.
IModalHandler - Interface in com.dianxin.tori.api.interaction
Represents a handler for a specific Discord Modal interaction.
initialize(JDA) - Static method in class com.dianxin.tori.api.utils.jda.ChannelUtils
Initializes the ChannelUtils with a JDA instance.
initialize(JDA) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Initializes the UserUtils with a JDA instance.
IntentContext - Class in com.dianxin.tori.api.utils.quicksetup
A utility class providing quick access to predefined sets of GatewayIntents.
interactionName() - Element in annotation interface com.dianxin.tori.api.annotations.contextmenu.ContextMenu
The name of the interaction that will be displayed in Discord's right-click context menu.
isDebug() - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
 
isDebug() - Method in interface com.dianxin.tori.api.config.ServerConfiguration
Checks whether the global debug mode is enabled for the server.
isDefer() - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
 
isDirectMessageOnly() - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
 
isGracefulLogOnUnknownInteractionError() - Method in interface com.dianxin.tori.api.config.ServerConfiguration
Checks whether logs Discord API Error is formatted gracefully.
isGuildOnly() - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
 
isIgnoreErrorsOnRestAction() - Method in interface com.dianxin.tori.api.config.ServerConfiguration
Checks whether errors on JDA RestActions should be globally ignored.
ISlashCommand - Interface in com.dianxin.tori.api.commands.slash
The foundational interface for all slash commands within the framework.
isOpus() - Method in class com.dianxin.tori.api.lavaplayer.AudioMixerSendHandler
 
isOwnerOnly() - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
 
isPrivateChannelOnly() - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
 
isSuppressedPackage(String) - Method in class com.dianxin.tori.api.utils.ExceptionUtils
Checks if the specified class name belongs to any currently registered suppressed package.
isSuppressingSomePackageOnStackTraceEnabled() - Method in interface com.dianxin.tori.api.config.ServerConfiguration
 
IStringSelectMenuHandler - Interface in com.dianxin.tori.api.interaction
Represents a handler for a specific Discord String Select Menu interaction.
ITextCommand - Interface in com.dianxin.tori.api.commands.text
The core interface for legacy text-based commands (e.g., "!ping").
IUserContextMenu - Interface in com.dianxin.tori.api.commands.usercontext
The core interface for User Context Menu commands.

J

JAVA_REQUIRED_VERSION - Static variable in class com.dianxin.tori.api.base.Constants
 
JavaDiscordBot - Class in com.dianxin.tori.api.bot
Represents a base class for creating Discord bots using JDA with an extended lifecycle system, console command support, and customizable startup options.
JavaDiscordBot() - Constructor for class com.dianxin.tori.api.bot.JavaDiscordBot
 
JDA_REQUIRED_VERSION - Static variable in class com.dianxin.tori.api.base.Constants
 
JDAVE_REQUIRED_JAVA_VERSION - Static variable in class com.dianxin.tori.api.base.Constants
 

L

LegacyCommandBuilder - Class in com.dianxin.tori.api.commands
A utility builder class designed to construct configurations for any commands.
LegacyCommandBuilder() - Constructor for class com.dianxin.tori.api.commands.LegacyCommandBuilder
 
loadBots() - Method in interface com.dianxin.tori.api.bot.IBotLoader
Scans the designated bots directory, reads their metadata, initializes their class loaders, and starts the bots concurrently.
logger - Variable in class com.dianxin.tori.api.commands.messagecontext.BaseMessageContextMenu
 

M

mainClassPath() - Method in interface com.dianxin.tori.api.bot.IBotMeta
Gets the fully qualified class path to the bot's main class (the class that extends JavaDiscordBot).
MaincommandRegistry - Interface in com.dianxin.tori.api.commands.registry
An interface used to register and define main Discord slash commands.
mention(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the mention string for the specified user.
MissingAnnotationException - Exception Class in com.dianxin.tori.api.exceptions
An exception thrown to indicate that a required annotation is missing on a specific class.
MissingAnnotationException(Class<?>, Class<?>) - Constructor for exception class com.dianxin.tori.api.exceptions.MissingAnnotationException
Constructs a new MissingAnnotationException.
ModalRegistrar - Class in com.dianxin.tori.api.interaction
A registry class responsible for managing and routing Discord Modal interactions.
ModalRegistrar(JavaDiscordBot) - Constructor for class com.dianxin.tori.api.interaction.ModalRegistrar
Constructs a new ModalRegistrar for the specified bot.
ModernBaseCommand - Class in com.dianxin.tori.api.commands.slash
The modern, annotation-driven base class for all slash commands.
ModernBaseCommand(JDA, IBotMeta) - Constructor for class com.dianxin.tori.api.commands.slash.ModernBaseCommand
Constructs a new ModernBaseCommand.
ModernBaseMessageContextMenu - Class in com.dianxin.tori.api.commands.messagecontext
An abstract base class for modern Message Context Menus.
ModernBaseMessageContextMenu(JDA, IBotMeta) - Constructor for class com.dianxin.tori.api.commands.messagecontext.ModernBaseMessageContextMenu
Constructs a new ModernBaseMessageContextMenu.
ModernBaseTextCommand - Class in com.dianxin.tori.api.commands.text
An annotation-driven base class for legacy text commands.
ModernBaseTextCommand(JDA, IBotMeta) - Constructor for class com.dianxin.tori.api.commands.text.ModernBaseTextCommand
 
ModernBaseUserContextMenu - Class in com.dianxin.tori.api.commands.usercontext
An abstract base class for modern User Context Menus.
ModernBaseUserContextMenu(JDA, IBotMeta) - Constructor for class com.dianxin.tori.api.commands.usercontext.ModernBaseUserContextMenu
Constructs a new ModernBaseUserContextMenu.

N

Notes - Search tag in class com.dianxin.tori.api.bootstrap.VirtualEnvironmentBootstrap
Section

O

onButton(ButtonInteractionEvent) - Method in class com.dianxin.tori.api.interaction.ComponentRegistrar
Processes an incoming button click event and routes it to the corresponding registered handler.
onDisable() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Called before the bot shuts down.
onEnable() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Called when the bot fully starts and is ready.
onEntity(EntitySelectInteractionEvent) - Method in class com.dianxin.tori.api.interaction.ComponentRegistrar
Processes an incoming entity select menu event and routes it to the corresponding registered handler.
onEvent(MessageReceivedEvent) - Method in class com.dianxin.tori.api.commands.TextCommandRegistrar
Handles the incoming message event, parses the command, and delegates execution.
onMessageContextEvent(MessageContextInteractionEvent) - Method in class com.dianxin.tori.api.commands.CommandRegistrar
Routes an incoming message context menu event to the appropriate registered handler.
onModal(ModalInteractionEvent) - Method in class com.dianxin.tori.api.interaction.ModalRegistrar
Processes an incoming modal submission event and routes it to the corresponding registered handler.
onShutdown() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Gracefully shuts down the bot, updating its status to offline, calling JavaDiscordBot.onDisable(), and closing the JDA connection.
onSlashCommandEvent(SlashCommandInteractionEvent) - Method in class com.dianxin.tori.api.commands.CommandRegistrar
Routes an incoming slash command event to the appropriate registered command handler.
onString(StringSelectInteractionEvent) - Method in class com.dianxin.tori.api.interaction.ComponentRegistrar
Processes an incoming string select menu event and routes it to the corresponding registered handler.
onUserContextEvent(UserContextInteractionEvent) - Method in class com.dianxin.tori.api.commands.CommandRegistrar
Routes an incoming user context menu event to the appropriate registered handler.
OwnerOnly - Annotation Interface in com.dianxin.tori.api.annotations.commands
Restricts the execution of the annotated command exclusively to the bot's defined owner(s).

P

parseActivity(String, String, String) - Static method in class com.dianxin.tori.api.utils.quicksetup.ActivityContext
Parses the provided parameters to construct a corresponding Activity object.
PrivateChannelOnly - Annotation Interface in com.dianxin.tori.api.annotations.commands
Restricts the execution of the annotated command to Private Channels only (such as Direct Messages or Group DMs).
provide20MsAudio() - Method in class com.dianxin.tori.api.lavaplayer.AudioMixerSendHandler
 

R

register(BaseTextCommand...) - Method in class com.dianxin.tori.api.commands.TextCommandRegistrar
Registers statically configured base text commands.
register(ModernBaseTextCommand...) - Method in class com.dianxin.tori.api.commands.TextCommandRegistrar
Registers annotation-driven modern text commands.
register(IButtonHandler) - Method in class com.dianxin.tori.api.interaction.ComponentRegistrar
Registers a new button handler into the registry.
register(IEntitySelectMenuHandler) - Method in class com.dianxin.tori.api.interaction.ComponentRegistrar
Registers a new entity select menu handler into the registry.
register(IModalHandler) - Method in class com.dianxin.tori.api.interaction.ModalRegistrar
Registers a new modal handler into the registry.
register(IStringSelectMenuHandler) - Method in class com.dianxin.tori.api.interaction.ComponentRegistrar
Registers a new string select menu handler into the registry.
registerChannel(String, AudioPlayer) - Method in class com.dianxin.tori.api.lavaplayer.AudioMixerSendHandler
Registers an AudioPlayer to a specific channel.
registerConsoleCommands() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Deprecated.
registerMessageContext(BaseMessageContextMenu...) - Method in class com.dianxin.tori.api.commands.CommandRegistrar
Registers one or more base message context menus.
registerMessageContext(ModernBaseMessageContextMenu...) - Method in class com.dianxin.tori.api.commands.CommandRegistrar
Registers one or more modern message context menus.
registerSlash(BaseCommand...) - Method in class com.dianxin.tori.api.commands.CommandRegistrar
Registers one or more legacy slash commands into the system.
registerSlash(ModernBaseCommand...) - Method in class com.dianxin.tori.api.commands.CommandRegistrar
Registers one or more modern slash commands into the system.
registerSupressedPackage(String) - Method in class com.dianxin.tori.api.utils.ExceptionUtils
Dynamically registers a package prefix to be suppressed from future stack traces.
registerUserContext(BaseUserContextMenu...) - Method in class com.dianxin.tori.api.commands.CommandRegistrar
Registers one or more base user context menus.
registerUserContext(ModernBaseUserContextMenu...) - Method in class com.dianxin.tori.api.commands.CommandRegistrar
Registers one or more modern user context menus.
removeChannel(String) - Method in class com.dianxin.tori.api.lavaplayer.AudioMixerSendHandler
 
RequirePermissions - Annotation Interface in com.dianxin.tori.api.annotations.commands
Specifies the Discord Permissions that the executing user must possess in the current channel or guild to invoke the annotated command.
RequireSelfPermissions - Annotation Interface in com.dianxin.tori.api.annotations.commands
Specifies the Discord Permissions that the bot itself must possess in the current channel or guild to successfully handle the annotated command.
retrieveUser(String) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Retrieves a user by their ID from the Discord API.

S

sanitize(Throwable) - Method in class com.dianxin.tori.api.utils.ExceptionUtils
Sanitizes the given Throwable by intercepting its stack trace and removing any elements that belong to registered suppressed packages.
ServerConfiguration - Interface in com.dianxin.tori.api.config
Represents the core configuration settings for the Tori Server.
setDebug(boolean) - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
Sets whether debug logging should be enabled for this command when it is executed.
setDefer(boolean) - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
Sets whether the command reply should be automatically deferred.
setDirectMessageOnly(boolean) - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
Restricts the command to be executable only in Direct Messages (DMs).
setGuildOnly(boolean) - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
Restricts the command to be executable only within Discord guilds (servers).
setOwnerOnly(boolean) - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
Restricts the command exclusively to the bot owner.
setPrivateChannelOnly(boolean) - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
Restricts the command to be executable only in private channels.
setReplyConfig(CommandReplyConfig) - Method in class com.dianxin.tori.api.commands.CommandRegistrar
Sets the custom reply configuration for command interactions.
setReplyConfig(CommandReplyConfig) - Method in class com.dianxin.tori.api.commands.TextCommandRegistrar
Sets the reply configuration for permission denials.
setServer(ToriServer) - Static method in class com.dianxin.tori.api.ToriProvider
Sets the global instance of the ToriServer.
shutdownAll() - Method in interface com.dianxin.tori.api.bot.IBotLoader
Gracefully shuts down all currently active bots.
start() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Starts the bot, initializes JDA, loads intents/activity, registers console commands, and begins console listening.
SubcommandRegistry - Interface in com.dianxin.tori.api.commands.registry
An interface used to register and define Discord slash subcommands.

T

tag(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Deprecated.
Discord has removed discriminators. Use UserUtils.username(User) or UserUtils.displayName(User) instead.
TextCommand - Annotation Interface in com.dianxin.tori.api.annotations.commands
Marks a class as an annotation-driven legacy text command.
TextCommandRegistrar - Class in com.dianxin.tori.api.commands
The registrar for legacy text-based commands.
TextCommandRegistrar(String) - Constructor for class com.dianxin.tori.api.commands.TextCommandRegistrar
Constructs a new TextCommandRegistrar.
TORI_SERVER_VERSION - Static variable in class com.dianxin.tori.api.base.Constants
 
ToriProvider - Class in com.dianxin.tori.api
A global provider and registry for the ToriServer instance.
ToriProvider() - Constructor for class com.dianxin.tori.api.ToriProvider
 
ToriServer - Interface in com.dianxin.tori.api
Represents the core foundation of the Tori Server.

U

unregisterSupressedPackage(String) - Method in class com.dianxin.tori.api.utils.ExceptionUtils
Unregisters a previously suppressed package prefix.
Usage - Search tag in class com.dianxin.tori.api.bootstrap.VirtualEnvironmentBootstrap
Section
username(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the raw username of the user.
UserUtils - Class in com.dianxin.tori.api.utils.jda
A utility class providing convenient methods to extract information from and interact with JDA User objects.

V

value() - Element in annotation interface com.dianxin.tori.api.annotations.commands.RequirePermissions
An array of Permissions required by the user.
value() - Element in annotation interface com.dianxin.tori.api.annotations.commands.RequireSelfPermissions
An array of Permissions required by the bot.
VersionController - Class in com.dianxin.tori.api.controller
A utility controller responsible for verifying the runtime environment's compatibility.
VirtualEnvironmentBootstrap - Class in com.dianxin.tori.api.bootstrap
Bootstraps the virtual environment configuration for the application.

W

Why this class exists - Search tag in class com.dianxin.tori.api.bootstrap.VirtualEnvironmentBootstrap
Section
A B C D E G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form