Index

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

A

AbstractConsoleCommand - Class in com.dianxin.tori.base.console.commands
Abstract base class representing a terminal or console command.
AbstractConsoleCommand(String) - Constructor for class com.dianxin.tori.base.console.commands.AbstractConsoleCommand
Constructs a new console command with the specified trigger keyword.
AbstractJsonConfiguration - Class in com.dianxin.tori.base.configuration.json
Abstract base class for JSON-based configurations.
AbstractJsonConfiguration() - Constructor for class com.dianxin.tori.base.configuration.json.AbstractJsonConfiguration
 
action(Callable<T>) - Static method in interface com.dianxin.tori.base.concurrent.FutureAction
Creates a new FutureAction from a given Callable task, but Executor is IO.
action(Callable<T>, Executor) - Static method in interface com.dianxin.tori.base.concurrent.FutureAction
Creates a new FutureAction from a given Callable task.
ActivityContext - Class in com.dianxin.tori.api.utils.quicksetup
A utility class for parsing and constructing JDA Activity instances from raw strings.
add(String, Object) - Method in class com.dianxin.tori.base.utils.EntityString
Appends a key-value pair to the output string.
addCheck(BooleanSupplier) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Appends a new check to the existing ones using a logical AND (invalid input: '&'invalid input: '&').
addIfNotNull(String, Object) - Method in class com.dianxin.tori.base.utils.EntityString
Conditionally appends a key-value pair only when the value is not null.
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.
addString(String, String) - Method in class com.dianxin.tori.base.utils.EntityString
Appends a key-value pair with explicit quotes around the string value (e.g., name="Tori").
AddWarn() - Constructor for class com.dianxin.tori.api.commands.slash.v2.example.WarnCommand.AddWarn
 
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.
and(FutureAction<U>, BiFunction<? super T, ? super U, ? extends O>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Combines the result of this action with another action using an accumulator function.
ArrayUtils - Class in com.dianxin.tori.base.utils
Utility class providing helper methods for standard array conversions and element checks.
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, 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
Deprecated.
Discord is shifting toward Slash Commands to improve user privacy, security, and discoverability. So we need to deprecate any text command classes to align with Discord's requirements. It is recommended to use Slash command registrars for better experience.
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
Deprecated.
 
BaseTextCommand(String, List<String>, JDA, IBotMeta, LegacyCommandBuilder) - Constructor for class com.dianxin.tori.api.commands.text.BaseTextCommand
Deprecated.
 
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.
BiUniqueMap<K,V> - Class in com.dianxin.tori.base.collections
A bidirectional implementation of the UniqueMap interface, backed by two HashMaps.
BiUniqueMap() - Constructor for class com.dianxin.tori.base.collections.BiUniqueMap
Constructs an empty BiUniqueMap with default initial capacity.
BiUniqueMap(UniqueMap.Entry<K, V>) - Constructor for class com.dianxin.tori.base.collections.BiUniqueMap
Constructs a BiUniqueMap initialized with a single key-value pair provided by the specified UniqueMap.Entry.
BiUniqueMap(Map<K, V>) - Constructor for class com.dianxin.tori.base.collections.BiUniqueMap
Constructs a BiUniqueMap containing the same mappings as the specified map.
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.
BotExceptionHandler<E,C> - Interface in com.dianxin.tori.base.lifecycle
Base Interface with any Exception Handler.
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

cancel() - Method in class com.dianxin.tori.base.scheduler.Task
Cancels this task.
cancel(boolean) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
 
cancelTask(int) - Method in interface com.dianxin.tori.base.scheduler.Scheduler
Cancels an active or scheduled task matching the unique task ID.
cancelTask(int) - Method in class com.dianxin.tori.base.scheduler.SchedulerImpl
 
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.
collect(FutureAction<? extends E>...) - Static method in interface com.dianxin.tori.base.concurrent.FutureAction
Sequences multiple actions to run sequentially (one after another).
CollectionUtils - Class in com.dianxin.tori.base.utils
Utility class providing conversion helpers for collections with mutable and unmodifiable variants.
collectParallel(FutureAction<? extends E>...) - Static method in interface com.dianxin.tori.base.concurrent.FutureAction
Dispatches multiple actions to run in parallel simultaneously.
ColorUtils - Class in com.dianxin.tori.base.utils
Utility class for color operations, hex transformations, and randomized palettes.
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.slash.v2.annotations - package com.dianxin.tori.api.commands.slash.v2.annotations
 
com.dianxin.tori.api.commands.slash.v2.controller - package com.dianxin.tori.api.commands.slash.v2.controller
 
com.dianxin.tori.api.commands.slash.v2.example - package com.dianxin.tori.api.commands.slash.v2.example
 
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
 
com.dianxin.tori.base.annotations - package com.dianxin.tori.base.annotations
 
com.dianxin.tori.base.collections - package com.dianxin.tori.base.collections
 
com.dianxin.tori.base.concurrent - package com.dianxin.tori.base.concurrent
 
com.dianxin.tori.base.configuration.json - package com.dianxin.tori.base.configuration.json
 
com.dianxin.tori.base.configuration.properties - package com.dianxin.tori.base.configuration.properties
 
com.dianxin.tori.base.configuration.yaml - package com.dianxin.tori.base.configuration.yaml
 
com.dianxin.tori.base.console.commands - package com.dianxin.tori.base.console.commands
 
com.dianxin.tori.base.env - package com.dianxin.tori.base.env
 
com.dianxin.tori.base.lifecycle - package com.dianxin.tori.base.lifecycle
 
com.dianxin.tori.base.scheduler - package com.dianxin.tori.base.scheduler
 
com.dianxin.tori.base.utils - package com.dianxin.tori.base.utils
 
Command - Annotation Interface in com.dianxin.tori.api.commands.slash.v2.annotations
Marks a class as a top-level Discord Slash Command.
commandName() - Element in annotation interface com.dianxin.tori.api.annotations.commands.TextCommand
The primary name used to trigger this command.
CommandOption - Annotation Interface in com.dianxin.tori.api.commands.slash.v2.annotations
Binds an interaction argument/option to a class field.
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 - Class in com.dianxin.tori.api.commands.slash.v2.controller
Manages registration, synchronization, and interaction routing for annotation-driven slash commands in the Tori framework.
CommandRegistrar(JavaDiscordBot) - Constructor for class com.dianxin.tori.api.commands.CommandRegistrar
 
CommandRegistrar(JavaDiscordBot) - Constructor for class com.dianxin.tori.api.commands.slash.v2.controller.CommandRegistrar
Initializes the registrar and hooks it into the bot's JDA event pipeline.
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.
commitAllCommands(Guild...) - Method in class com.dianxin.tori.api.commands.slash.v2.controller.CommandRegistrar
Commits all registered commands to Discord.
complete() - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Blocks the current thread and executes the action synchronously.
complete(boolean) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Blocks the current thread and executes the action synchronously.
complete(long, TimeUnit) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Blocks the current thread to execute the action synchronously, with a maximum waiting time.
completed(T) - Static method in interface com.dianxin.tori.base.concurrent.FutureAction
Creates a FutureAction that is already completed with the given value.
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.
ConcurrentUniqueMap<K,V> - Class in com.dianxin.tori.base.collections
A thread-safe, bidirectional implementation of the UniqueMap interface.
ConcurrentUniqueMap() - Constructor for class com.dianxin.tori.base.collections.ConcurrentUniqueMap
 
ConcurrentUniqueMap(Map<? extends K, ? extends V>) - Constructor for class com.dianxin.tori.base.collections.ConcurrentUniqueMap
 
ConsoleCommandManager - Class in com.dianxin.tori.base.console.commands
Manages the registration, parsing, and execution routing of console commands.
ConsoleCommandManager() - Constructor for class com.dianxin.tori.base.console.commands.ConsoleCommandManager
 
Constants - Class in com.dianxin.tori.api.base
 
contains(String) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
contains(String) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
Kiểm tra path có tồn tại không.
contains(String) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
contains(T[], T) - Static method in class com.dianxin.tori.base.utils.ArrayUtils
Checks if a specific element exists within the provided array.
containsKey(K) - Method in class com.dianxin.tori.base.collections.BiUniqueMap
 
containsKey(K) - Method in class com.dianxin.tori.base.collections.ConcurrentUniqueMap
 
containsKey(K) - Method in interface com.dianxin.tori.base.collections.UniqueMap
Returns true if this map contains a mapping for the specified key.
containsValue(V) - Method in class com.dianxin.tori.base.collections.BiUniqueMap
 
containsValue(V) - Method in class com.dianxin.tori.base.collections.ConcurrentUniqueMap
 
containsValue(V) - Method in interface com.dianxin.tori.base.collections.UniqueMap
Returns true if this map maps one or more keys to the specified value.
ContextMenu - Annotation Interface in com.dianxin.tori.api.annotations.contextmenu
Indicates that the annotated class serves as a Context Menu command.
cpu() - Static method in class com.dianxin.tori.base.lifecycle.ExecutorManager
Gets the ExecutorService designated for heavy data processing or CPU-bound tasks.
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

deadline(long) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Sets an absolute Unix timestamp deadline for this action.
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
 
defer() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.Execute
Indicates whether the framework should automatically defer the interaction before executing the method.
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.
delay(long, TimeUnit) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Delays the execution or completion of this action by a specified duration.
description() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.Command
A brief description explaining what the command does (1-100 characters).
description() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.CommandOption
A helpful description of the argument shown to users.
description() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.Subcommand
A concise description explaining the action performed by this subcommand.
description() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.SubcommandGroup
A short summary describing the category of subcommands grouped under this name.
DIANXIN_API_VERSION - Static variable in class com.dianxin.tori.base.utils.VersionManager
 
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.
dispatch(String) - Method in class com.dianxin.tori.base.console.commands.ConsoleCommandManager
Dispatches and executes a command string directly.
dispatch(Throwable, C) - Method in class com.dianxin.tori.base.lifecycle.ExceptionManager
Coordinate the error to its correct handler.
displayName(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the effective display name of the user.
doBeforeRetry(Consumer<Retry.RetryContext>) - Method in interface com.dianxin.tori.base.concurrent.Retry
Registers a listener to be invoked before each retry execution is dispatched.

E

effectiveAvatarLink(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the effective avatar URL for the user.
EmbeddedPropertiesConfiguration - Interface in com.dianxin.tori.base.configuration.properties
 
EmbeddedPropertiesConfigurationImpl - Class in com.dianxin.tori.base.configuration.properties
 
EmbeddedPropertiesConfigurationImpl(File, String) - Constructor for class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
enableBot(String) - Method in interface com.dianxin.tori.api.bot.IBotLoader
Dynamically loads and starts a bot from a JAR file at runtime.
EntityString - Class in com.dianxin.tori.base.utils
Fluent builder utility for constructing clean, formatted toString() representations.
EntityString(Class<?>) - Constructor for class com.dianxin.tori.base.utils.EntityString
Initializes an entity string using the specified class metadata.
EntityString(Object) - Constructor for class com.dianxin.tori.base.utils.EntityString
Initializes an entity string using the runtime class of the provided instance.
EntityString(String) - Constructor for class com.dianxin.tori.base.utils.EntityString
Initializes an entity string using an explicit header identifier.
Entry(K, V) - Constructor for record class com.dianxin.tori.base.collections.UniqueMap.Entry
Creates an instance of a Entry record class.
ephemeral() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.Execute
Defines whether the deferred response should be visible only to the command invoker (ephemeral).
equals(Object) - Method in record class com.dianxin.tori.base.collections.UniqueMap.Entry
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.dianxin.tori.base.utils.TimeUtils.SeekTime
Indicates whether some other object is "equal to" this one.
ExampleCommand - Class in com.dianxin.tori.api.commands.slash.v2.example
Example demonstrating a standard, single flat slash command with optional options.
ExampleCommand() - Constructor for class com.dianxin.tori.api.commands.slash.v2.example.ExampleCommand
 
ExampleConsoleCommand - Class in com.dianxin.tori.base.console.commands
A concrete implementation example of a console command.
ExampleConsoleCommand() - Constructor for class com.dianxin.tori.base.console.commands.ExampleConsoleCommand
Constructs the example shutdown command under the trigger keyword "stop".
Example usage - Search tag in class com.dianxin.tori.base.utils.VersionManager
Section
exception() - Method in interface com.dianxin.tori.base.concurrent.Retry.RetryContext
The exception that caused the previous execution attempt to fail.
ExceptionManager - Class in com.dianxin.tori.base.lifecycle
 
ExceptionManager() - Constructor for class com.dianxin.tori.base.lifecycle.ExceptionManager
 
ExceptionUtils - Class in com.dianxin.tori.api.utils
Utility class for sanitizing and formatting exception stack traces.
execute(String[]) - Method in class com.dianxin.tori.base.console.commands.AbstractConsoleCommand
Executes the core logic of this command.
execute(String[]) - Method in class com.dianxin.tori.base.console.commands.ExampleConsoleCommand
Executes the shutdown logic, providing a hook to safely clean up open resources.
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
Deprecated.
The core execution logic of the text command.
execute(MessageReceivedEvent, String[]) - Method in class com.dianxin.tori.api.commands.text.ModernBaseTextCommand
Deprecated.
The core execution logic of the text command.
Execute - Annotation Interface in com.dianxin.tori.api.commands.slash.v2.annotations
Identifies the handler method to invoke when an interaction is triggered.
ExecutorManager - Class in com.dianxin.tori.base.lifecycle
Centralized manager handling core ExecutorService (Thread Pools) across the framework.

F

failure(Throwable) - Static method in class com.dianxin.tori.base.concurrent.FutureAction.Result
 
FileConfiguration - Interface in com.dianxin.tori.base.configuration.yaml
Example usage:
filter(Predicate<? super Throwable>) - Method in interface com.dianxin.tori.base.concurrent.Retry
Specifies a condition to filter which exceptions are eligible for retry attempts.
fixedDelay(long, Duration) - Static method in interface com.dianxin.tori.base.concurrent.Retry
Creates a retry strategy that retries up to the given maximum attempts with a fixed backoff delay between attempts.
flatMap(Function<? super T, ? extends FutureAction<U>>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Chains another asynchronous action to run after this one completes successfully.
formatTime(long) - Static method in class com.dianxin.tori.base.utils.TimeUtils
[EN] Formats a duration in milliseconds into a human-readable string.
Format: HH:MM:SS or MM:SS.
fromCompletableFuture(CompletableFuture<T>, Executor) - Static method in interface com.dianxin.tori.base.concurrent.FutureAction
Creates a new FutureAction from a given CompletableFuture.
fromHex(String) - Static method in class com.dianxin.tori.base.utils.ColorUtils
Parses a hexadecimal string into a Color object.
FutureAction<T> - Interface in com.dianxin.tori.base.concurrent
Represents an asynchronous execution unit, heavily inspired by JDA's RestAction but designed to be completely independent and powered natively by CompletableFuture.
FutureAction.Result<T> - Class in com.dianxin.tori.base.concurrent
A wrapper class to safely hold either the success value or the thrown exception.

G

get() - Method in class com.dianxin.tori.base.concurrent.FutureAction.Result
 
get(String) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
get(String) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
Lấy giá trị Object thô.
get(String) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
get(String) - Static method in class com.dianxin.tori.base.env.VirtualEnvironmentConfiguration
Retrieves the environment variable value linked with the specified key.
get(String, Object) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
get(String, Object) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
 
get(String, Object) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
get(K) - Method in class com.dianxin.tori.base.collections.BiUniqueMap
 
get(K) - Method in class com.dianxin.tori.base.collections.ConcurrentUniqueMap
 
get(K) - Method in interface com.dianxin.tori.base.collections.UniqueMap
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
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
Deprecated.
 
getAll() - Method in class com.dianxin.tori.base.collections.BiUniqueMap
 
getAll() - Method in class com.dianxin.tori.base.collections.ConcurrentUniqueMap
 
getAll() - Method in interface com.dianxin.tori.base.collections.UniqueMap
Returns an unmodifiable Map view of the mappings contained in this map.
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.
getBoolean(String) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
getBoolean(String) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
 
getBoolean(String) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
getBoolean(String, boolean) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
getBoolean(String, boolean) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
 
getBoolean(String, boolean) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
getBotConfig() - Method in class com.dianxin.tori.base.configuration.json.Json5GenericConfiguration
 
getBotInviteLink() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Generates a default bot invitation link with no pre-defined permissions.
getBotInviteLink(Permission...) - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Generates a bot invitation link pre-configured with specific permissions.
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.
getChecks() - Method in interface com.dianxin.tori.base.concurrent.FutureAction
 
getCommand() - Method in interface com.dianxin.tori.api.commands.registry.MaincommandRegistry
Gets the command data required for registering this main command with Discord.
getCommandLine() - Method in class com.dianxin.tori.base.console.commands.AbstractConsoleCommand
Gets the command line keyword trigger.
getCommandName() - Method in class com.dianxin.tori.api.commands.text.BaseTextCommand
Deprecated.
 
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.
getConfigFile() - Method in class com.dianxin.tori.base.configuration.json.Json5GenericConfiguration
 
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
Gets the data storage directory specific to this bot.
getDefaultIntents() - Static method in class com.dianxin.tori.api.utils.quicksetup.IntentContext
Retrieves a standard, commonly used set of default GatewayIntents.
getDelay() - Method in interface com.dianxin.tori.base.concurrent.Retry
Retrieves the delay duration configured between retry attempts.
getDmOnlyMessage() - Method in interface com.dianxin.tori.api.commands.CommandReplyConfig
 
getDmOnlyMessage() - Method in class com.dianxin.tori.api.commands.DefaultEnglishReplyConfig
 
getDouble(String) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
getDouble(String) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
 
getDouble(String) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
getDouble(String, double) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
getDouble(String, double) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
 
getDouble(String, double) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
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.
getEnv(String) - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Retrieves an environment configuration value by its variable name.
getEnvOrDefault(String, String) - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Retrieves an environment configuration value, returning a fallback default if not found.
getEnvOrThrow(String) - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Retrieves an environment configuration value by its variable name, throwing an exception if missing.
getEnvOrThrow(String, Throwable) - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Retrieves an environment configuration value, throwing a custom throwable if missing.
getFailure() - Method in class com.dianxin.tori.base.concurrent.FutureAction.Result
 
getFilter() - Method in interface com.dianxin.tori.base.concurrent.Retry
Retrieves the predicate used to evaluate whether an exception qualifies for a retry attempt.
getGuildOnlyMessage() - Method in interface com.dianxin.tori.api.commands.CommandReplyConfig
 
getGuildOnlyMessage() - Method in class com.dianxin.tori.api.commands.DefaultEnglishReplyConfig
 
getGuildOwnerOnlyMessage() - Method in interface com.dianxin.tori.api.commands.CommandReplyConfig
 
getGuildOwnerOnlyMessage() - 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.
getInt(String) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
getInt(String) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
 
getInt(String) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
getInt(String, int) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
getInt(String, int) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
 
getInt(String, int) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
getIntents() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Provides the list of gateway intents required for the bot.
getJavaVersionRunning() - Static method in class com.dianxin.tori.base.utils.VersionManager
Returns the major feature version of the Java runtime currently running the application.
getJavaVersionString() - Static method in class com.dianxin.tori.base.utils.VersionManager
Returns the full Java runtime version string.
getJda() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Gets the JDA instance representing the active 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
Deprecated.
Retrieves the JDA instance associated with this command.
getJda() - Method in class com.dianxin.tori.api.commands.text.ModernBaseTextCommand
Deprecated.
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.
getKeyByValue(V) - Method in class com.dianxin.tori.base.collections.BiUniqueMap
 
getKeyByValue(V) - Method in class com.dianxin.tori.base.collections.ConcurrentUniqueMap
 
getKeyByValue(V) - Method in interface com.dianxin.tori.base.collections.UniqueMap
Returns the key associated with the specified value, or null if this map contains no mapping for the value.
getList(String) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
getList(String) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
 
getList(String) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
getLogger() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Gets the logger instance dedicated to 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
Deprecated.
Retrieves the logger instance for the current command.
getLogger() - Method in class com.dianxin.tori.api.commands.text.ModernBaseTextCommand
Deprecated.
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.
getLogger() - Method in class com.dianxin.tori.base.console.commands.AbstractConsoleCommand
Gets the logger associated with the runtime class of this command instance.
getMaxAttempts() - Method in interface com.dianxin.tori.base.concurrent.Retry
Retrieves the maximum number of retry attempts configured for this strategy.
getMeta() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Gets the metadata container associated with this bot.
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.
getOrDefault(String, String) - Static method in class com.dianxin.tori.base.env.VirtualEnvironmentConfiguration
Retrieves the environment variable value associated with the specified key, returning the fallback value if the key is missing.
getOrThrow(String) - Static method in class com.dianxin.tori.base.env.VirtualEnvironmentConfiguration
Retrieves the environment variable value linked with the specified key, throwing an exception if the key is not present.
getOrThrow(String, Throwable) - Static method in class com.dianxin.tori.base.env.VirtualEnvironmentConfiguration
Retrieves the environment variable value linked with the specified key, throwing a custom exceptions wrapper if the key is missing.
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
 
getRetryListener() - Method in interface com.dianxin.tori.base.concurrent.Retry
Retrieves the configured listener callback executed prior to every retry invocation.
getScheduler() - Method in class com.dianxin.tori.api.bot.JavaDiscordBot
Gets the global task scheduler provided by the Tori environment.
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
Gets the self-user profile of the bot on Discord.
getSelfPermissionsRequired() - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
 
getString(String) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
getString(String) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
 
getString(String) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
getString(String, String) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
getString(String, String) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
 
getString(String, String) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
getStringList(String) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
getStringList(String) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
 
getStringList(String) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
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.
getTaskId() - Method in class com.dianxin.tori.base.scheduler.Task
Retrieves the unique identifier of this task.
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.
GuildOwnerOnly - Annotation Interface in com.dianxin.tori.api.annotations.commands
Restricts the execution of the annotated command to Owner of Discord Guilds (Server) only.

H

handle(E, C) - Method in interface com.dianxin.tori.base.lifecycle.BotExceptionHandler
 
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
Deprecated.
 
handle(MessageReceivedEvent, String[], CommandReplyConfig) - Method in interface com.dianxin.tori.api.commands.text.ITextCommand
Deprecated.
Handles the incoming text command interaction.
handle(MessageReceivedEvent, String[], CommandReplyConfig) - Method in class com.dianxin.tori.api.commands.text.ModernBaseTextCommand
Deprecated.
 
hasGlobalName(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Checks if the user has configured a global display name.
hashCode() - Method in record class com.dianxin.tori.base.collections.UniqueMap.Entry
Returns a hash code value for this object.
hashCode() - Method in record class com.dianxin.tori.base.utils.TimeUtils.SeekTime
Returns a hash code value for this object.
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() - Static method in class com.dianxin.tori.base.lifecycle.ExecutorManager
Initializes default managed thread pool setups for the framework ecosystem.
initialize(ExecutorService, ExecutorService) - Static method in class com.dianxin.tori.base.lifecycle.ExecutorManager
Overloaded initialization method to pass custom external ExecutorService instances.
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.
io() - Static method in class com.dianxin.tori.base.lifecycle.ExecutorManager
Gets the ExecutorService designated for Input/Output (I/O) bound operations.
isCancelled() - Method in interface com.dianxin.tori.base.concurrent.FutureAction
 
isCancelled() - Method in class com.dianxin.tori.base.scheduler.Task
Checks whether the task execution has been cancelled.
isCompatibleJavaVersion(int) - Static method in class com.dianxin.tori.base.utils.VersionManager
Checks whether the currently running Java version is compatible with the specified minimum required version.
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
 
isDone() - Method in interface com.dianxin.tori.base.concurrent.FutureAction
 
isDone() - Method in class com.dianxin.tori.base.scheduler.Task
Checks whether the task execution completed, terminated with an error, or was cancelled.
isFailure() - Method in class com.dianxin.tori.base.concurrent.FutureAction.Result
 
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
 
isGuildOwnerOnly() - 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.
isJavaVersionInRange(int, int) - Static method in class com.dianxin.tori.base.utils.VersionManager
Checks whether the current Java version falls within the given range.
ISlashCommand - Interface in com.dianxin.tori.api.commands.slash
The foundational interface for all slash commands within the framework.
isLtsVersion() - Static method in class com.dianxin.tori.base.utils.VersionManager
Checks whether the current Java version is a Long-Term Support (LTS) release.
isOnlyDigits(String) - Static method in class com.dianxin.tori.base.utils.PatternUtils
Verifies whether the string consists strictly of numeric digits (0-9).
isOnlyLetters(String) - Static method in class com.dianxin.tori.base.utils.PatternUtils
Verifies whether the string consists strictly of English alphabetic characters (a-z, A-Z).
isOnlyLettersAndDigits(String) - Static method in class com.dianxin.tori.base.utils.PatternUtils
Verifies whether the string consists strictly of English letters and digits (a-z, A-Z, 0-9).
isOnlyNumbers(String) - Static method in class com.dianxin.tori.base.utils.PatternUtils
Verifies whether the string constitutes a valid numeric scalar (supports negative signs and decimals).
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
 
isSuccess() - Method in class com.dianxin.tori.base.concurrent.FutureAction.Result
 
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
 
isSync() - Method in class com.dianxin.tori.base.scheduler.Task
Checks whether this task runs on the synchronous/CPU thread pool.
IStringSelectMenuHandler - Interface in com.dianxin.tori.api.interaction
Represents a handler for a specific Discord String Select Menu interaction.
iteration() - Method in interface com.dianxin.tori.base.concurrent.Retry.RetryContext
The current attempt index of the retry lifecycle (1-based index).
ITextCommand - Interface in com.dianxin.tori.api.commands.text
Deprecated.
Discord is shifting toward Slash Commands to improve user privacy, security, and discoverability. So we need to deprecate any text command classes to align with Discord's requirements. It is recommended to use Slash command registrars for better experience.
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
 
Json5GenericConfiguration<T> - Class in com.dianxin.tori.base.configuration.json
A generic configuration manager that supports reading, saving, and hot-reloading JSON5 configuration files at runtime.
Json5GenericConfiguration(String, String, Class<T>) - Constructor for class com.dianxin.tori.base.configuration.json.Json5GenericConfiguration
Initializes the JSON5 configuration manager.

K

key() - Method in record class com.dianxin.tori.base.collections.UniqueMap.Entry
Returns the value of the key record component.

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
 
load(File) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
load(File) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
Tải dữ liệu từ file vào bộ nhớ.
load(File) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
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.
map(Function<? super T, ? extends U>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Transforms the result of this action using the provided mapping function.
mapToResult() - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Maps the output of this action into a safe FutureAction.Result wrapper, which encapsulates either the success value or the thrown exception.
max(long) - Static method in interface com.dianxin.tori.base.concurrent.Retry
Creates a retry strategy that immediately retries up to the given maximum attempts with zero delay.
mention(User) - Static method in class com.dianxin.tori.api.utils.jda.UserUtils
Gets the mention string for the specified user.
milliseconds() - Method in record class com.dianxin.tori.base.utils.TimeUtils.SeekTime
Returns the value of the milliseconds record component.
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
Deprecated.
Discord is shifting toward Slash Commands to improve user privacy, security, and discoverability. So we need to deprecate any text command classes to align with Discord's requirements. It is recommended to use Slash command registrars for better experience.
ModernBaseTextCommand(JDA, IBotMeta) - Constructor for class com.dianxin.tori.api.commands.text.ModernBaseTextCommand
Deprecated.
 
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

name() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.Command
The name of the slash command.
name() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.CommandOption
The unique identifier/name for this option displayed in the Discord client.
name() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.Subcommand
The name of the subcommand.
name() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.SubcommandGroup
The name of the subcommand group.
Notes - Search tag in class com.dianxin.tori.api.bootstrap.VirtualEnvironmentBootstrap
Section

O

of(UniqueMap.Entry<R1, R2>...) - Static method in interface com.dianxin.tori.base.collections.UniqueMap
Returns an unmodifiable UniqueMap containing the given key-value mappings.
of(File) - Static method in class com.dianxin.tori.base.configuration.properties.PropertiesConfiguration
 
of(File, String) - Static method in class com.dianxin.tori.base.configuration.properties.PropertiesConfiguration
Tạo một cấu hình Properties từ file.
of(K, V) - Static method in record class com.dianxin.tori.base.collections.UniqueMap.Entry
 
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.
onErrorFlatMap(Predicate<? super Throwable>, Function<? super Throwable, ? extends FutureAction<? extends T>>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Conditionally handles an exception by returning an entirely new asynchronous fallback action.
onErrorMap(Function<? super Throwable, ? extends T>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Maps the exception thrown by this action into a default successful result.
onErrorMap(Predicate<? super Throwable>, Function<? super Throwable, ? extends T>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Conditionally maps the exception into a successful result.
onErrorReturn(T) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Directly returns a hardcoded fallback value if an exception occurs.
onEvent(MessageReceivedEvent) - Method in class com.dianxin.tori.api.commands.TextCommandRegistrar
Deprecated.
Handles the incoming message event, parses the command, and delegates execution.
onExecutor(Executor) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Transfers the completion processing of this action to a specific executor.
onFailure(Consumer<? super Throwable>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Appends a failure callback without interrupting the chain.
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.
onSlashCommandInteraction(SlashCommandInteractionEvent) - Method in class com.dianxin.tori.api.commands.slash.v2.controller.CommandRegistrar
 
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.
onSuccess(Consumer<? super T>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Appends a success callback without interrupting the chain.
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.
parseColonTime(String) - Static method in class com.dianxin.tori.base.utils.TimeUtils
[EN] Parses a timestamp formatted with colons.
Format accepted: HH:MM:SS, MM:SS, or SS.
parseTime(String) - Static method in class com.dianxin.tori.base.utils.TimeUtils
[EN] Parses a seek time string into milliseconds and determines if it's relative.
Supports "colon time" (e.g., 1:20:30) or "unit time" (e.g., 1h20m).
Also detects relative seeking (starting with + or -).
parseUnitTime(String) - Static method in class com.dianxin.tori.base.utils.TimeUtils
[EN] Parses a time string formatted with units.
Examples: 20m10s, 1d5h, 1h and 20m.
PatternUtils - Class in com.dianxin.tori.base.utils
Utility class containing pre-compiled regex patterns for string validation checks.
permissions() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.Execute
The required permissions the invoking member must possess in the guild to run this command.
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).
PropertiesConfiguration - Class in com.dianxin.tori.base.configuration.properties
Example code:
PropertiesConfiguration() - Constructor for class com.dianxin.tori.base.configuration.properties.PropertiesConfiguration
 
provide20MsAudio() - Method in class com.dianxin.tori.api.lavaplayer.AudioMixerSendHandler
 
putUnique(K, V) - Method in class com.dianxin.tori.base.collections.ConcurrentUniqueMap
 
putUnique(K, V) - Method in class com.dianxin.tori.base.collections.BiUniqueMap
 
putUnique(K, V) - Method in interface com.dianxin.tori.base.collections.UniqueMap
Associates the specified value with the specified key in this map.

Q

queue() - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Submits the action for asynchronous execution.
queue(Consumer<? super T>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Submits the action for asynchronous execution with a specific success callback.
queue(Consumer<? super T>, Consumer<? super Throwable>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Submits the action for asynchronous execution with specific success and failure callbacks.
queueAfter(long, TimeUnit) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
 
queueAfter(long, TimeUnit, Consumer<? super T>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
 
queueAfter(long, TimeUnit, Consumer<? super T>, Consumer<? super Throwable>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Queues the action asynchronously after waiting for a specified delay.

R

random() - Static method in class com.dianxin.tori.base.utils.ColorUtils
Generates a completely randomized RGB Color.
randomColorRestricted(String, String) - Static method in class com.dianxin.tori.base.utils.ColorUtils
Generates a randomized color bounded between two hexadecimal thresholds per channel.
randomHexString() - Static method in class com.dianxin.tori.base.utils.ColorUtils
Generates a randomized uppercase Hex string representation (e.g., "#FFAABB").
recover(Function<Throwable, T>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Recovers from an exception by providing a fallback value.
register(BaseTextCommand...) - Method in class com.dianxin.tori.api.commands.TextCommandRegistrar
Deprecated.
Registers statically configured base text commands.
register(ModernBaseTextCommand...) - Method in class com.dianxin.tori.api.commands.TextCommandRegistrar
Deprecated.
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.
register(AbstractConsoleCommand) - Method in class com.dianxin.tori.base.console.commands.ConsoleCommandManager
Registers a new console command.
register(AbstractConsoleCommand, boolean) - Method in class com.dianxin.tori.base.console.commands.ConsoleCommandManager
Registers a console command with a flag to determine explicit log output.
register(Class<E>, BotExceptionHandler<E, C>) - Method in class com.dianxin.tori.base.lifecycle.ExceptionManager
Register a handler for a specific Exception type.
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.
registerSlash(Class<?>...) - Method in class com.dianxin.tori.api.commands.slash.v2.controller.CommandRegistrar
Registers one or more command classes annotated with Command.
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.
relative() - Method in record class com.dianxin.tori.base.utils.TimeUtils.SeekTime
Returns the value of the relative record component.
ReleasedSince - Annotation Interface in com.dianxin.tori.base.annotations
Marks the specific version of the Tori framework in which an element (class, interface, method, constructor, or field) was officially introduced.
reload() - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
reloadConfig() - Method in class com.dianxin.tori.base.configuration.json.Json5GenericConfiguration
Reloads the configuration instance directly from the JSON5 file.
removeByKey(K) - Method in class com.dianxin.tori.base.collections.BiUniqueMap
 
removeByKey(K) - Method in class com.dianxin.tori.base.collections.ConcurrentUniqueMap
 
removeByKey(K) - Method in interface com.dianxin.tori.base.collections.UniqueMap
Removes the mapping for a key from this map if it is present.
removeByValue(V) - Method in class com.dianxin.tori.base.collections.BiUniqueMap
 
removeByValue(V) - Method in class com.dianxin.tori.base.collections.ConcurrentUniqueMap
 
removeByValue(V) - Method in interface com.dianxin.tori.base.collections.UniqueMap
Removes the mapping for a value from this map if it is present.
removeChannel(String) - Method in class com.dianxin.tori.api.lavaplayer.AudioMixerSendHandler
 
RemoveWarn() - Constructor for class com.dianxin.tori.api.commands.slash.v2.example.WarnCommand.RemoveWarn
 
required() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.CommandOption
Specifies whether the user is required to supply this option when executing the command.
requireJavaVersion(int) - Static method in class com.dianxin.tori.base.utils.VersionManager
Ensures that the current Java version meets the required minimum version.
requireJavaVersion(int, boolean) - Static method in class com.dianxin.tori.base.utils.VersionManager
Ensures that the current Java version meets the required minimum version.
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.
Retry - Interface in com.dianxin.tori.base.concurrent
Represents a retry strategy configuration for asynchronous execution units such as FutureAction.
Retry.RetryContext - Interface in com.dianxin.tori.base.concurrent
Encapsulates runtime contextual metadata associated with the current retry iteration.
retryIfError(int) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Retries this action immediately up to the specified maximum attempts if an error occurs.
retryIfError(int, Duration) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Retries this action with a fixed backoff delay between attempts if an error occurs.
retryIfError(int, Duration, Runnable) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Retries this action with a fixed backoff delay and an execution hook invoked prior to each retry.
retryIfError(int, Duration, Runnable, Predicate<? super Throwable>) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Retries this action using a comprehensive set of shortcut configurations including backoff, lifecycle hook, and error filtering.
retryWhen(Retry) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Retries this action based on a custom retry strategy defined by a Retry policy.
run(SlashCommandInteractionEvent) - Method in class com.dianxin.tori.api.commands.slash.v2.example.ExampleCommand
Executes the greeting command.
run(SlashCommandInteractionEvent) - Method in class com.dianxin.tori.api.commands.slash.v2.example.WarnCommand.AddWarn
Executes the add warning logic.
run(SlashCommandInteractionEvent) - Method in class com.dianxin.tori.api.commands.slash.v2.example.WarnCommand.RemoveWarn
Executes the remove warning logic.
runCpuAsync(Supplier<T>) - Static method in class com.dianxin.tori.base.lifecycle.ExecutorManager
Executes an asynchronous background task on the managed ExecutorManager.cpu() executor pool.
runIoAsync(Supplier<T>) - Static method in class com.dianxin.tori.base.lifecycle.ExecutorManager
Executes an asynchronous background task on the managed ExecutorManager.io() executor pool.
runTask(Runnable) - Method in interface com.dianxin.tori.base.scheduler.Scheduler
Executes a task immediately on the primary CPU-bound thread pool.
runTask(Runnable) - Method in class com.dianxin.tori.base.scheduler.SchedulerImpl
 
runTaskAsync(Runnable) - Method in interface com.dianxin.tori.base.scheduler.Scheduler
Executes a task immediately on the asynchronous I/O-bound thread pool.
runTaskAsync(Runnable) - Method in class com.dianxin.tori.base.scheduler.SchedulerImpl
 
runTaskLater(Runnable, long, TimeUnit) - Method in interface com.dianxin.tori.base.scheduler.Scheduler
Schedules a task to execute after a specified delay on the CPU thread pool.
runTaskLater(Runnable, long, TimeUnit) - Method in class com.dianxin.tori.base.scheduler.SchedulerImpl
 
runTaskLaterAsync(Runnable, long, TimeUnit) - Method in interface com.dianxin.tori.base.scheduler.Scheduler
Schedules a task to execute asynchronously after a specified delay on the I/O thread pool.
runTaskLaterAsync(Runnable, long, TimeUnit) - Method in class com.dianxin.tori.base.scheduler.SchedulerImpl
 
runTaskTimer(Runnable, long, long, TimeUnit) - Method in interface com.dianxin.tori.base.scheduler.Scheduler
Schedules a repeated task to execute on the CPU thread pool.
runTaskTimer(Runnable, long, long, TimeUnit) - Method in class com.dianxin.tori.base.scheduler.SchedulerImpl
 
runTaskTimerAsync(Runnable, long, long, TimeUnit) - Method in interface com.dianxin.tori.base.scheduler.Scheduler
Schedules a repeated task to execute asynchronously on the I/O thread pool.
runTaskTimerAsync(Runnable, long, long, TimeUnit) - Method in class com.dianxin.tori.base.scheduler.SchedulerImpl
 

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.
save(File) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
save(File) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
Lưu dữ liệu từ bộ nhớ xuống file.
save(File) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
saveConfig() - Method in class com.dianxin.tori.base.configuration.json.Json5GenericConfiguration
Saves the current configuration instance state back to the JSON5 file.
Scheduler - Interface in com.dianxin.tori.base.scheduler
Task scheduling management interface integrated with ExecutorManager.
SchedulerImpl - Class in com.dianxin.tori.base.scheduler
Default thread-safe implementation of Scheduler.
SchedulerImpl() - Constructor for class com.dianxin.tori.base.scheduler.SchedulerImpl
Initializes the scheduler with a dedicated daemon timer thread.
SeekTime(long, boolean) - Constructor for record class com.dianxin.tori.base.utils.TimeUtils.SeekTime
Creates an instance of a SeekTime record class.
selfPermissions() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.Execute
The required permissions the bot itself must possess in the guild to execute this command.
ServerConfiguration - Interface in com.dianxin.tori.api.config
Represents the core configuration settings for the Tori Server.
set(String, Object) - Method in class com.dianxin.tori.base.configuration.properties.EmbeddedPropertiesConfigurationImpl
 
set(String, Object) - Method in interface com.dianxin.tori.base.configuration.yaml.FileConfiguration
Set giá trị vào path.
set(String, Object) - Method in class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 
setChecks(BooleanSupplier) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Sets a condition (check) that must return true before the action is executed.
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).
setFuture(Future<?>) - Method in class com.dianxin.tori.base.scheduler.Task
Attaches the underlying execution future to this task wrapper.
setGuildOnly(boolean) - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
Restricts the command to be executable only within Discord guilds (servers).
setGuildOwnerOnly(boolean) - Method in class com.dianxin.tori.api.commands.LegacyCommandBuilder
Restricts the command to be executable only by Owner in guild that been executed.
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
Deprecated.
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.
shutdown() - Static method in class com.dianxin.tori.base.lifecycle.ExecutorManager
Gracefully shuts down all managed running framework executor pools.
shutdown() - Method in interface com.dianxin.tori.base.scheduler.Scheduler
Cancels all currently scheduled tasks and releases underlying thread pool resources.
shutdown() - Method in class com.dianxin.tori.base.scheduler.SchedulerImpl
 
shutdownAll() - Method in interface com.dianxin.tori.api.bot.IBotLoader
Gracefully shuts down all currently active bots.
size() - Method in class com.dianxin.tori.base.collections.BiUniqueMap
 
size() - Method in class com.dianxin.tori.base.collections.ConcurrentUniqueMap
 
size() - Method in interface com.dianxin.tori.base.collections.UniqueMap
Returns the number of key-value mappings in this map.
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.
startListening() - Method in class com.dianxin.tori.base.console.commands.ConsoleCommandManager
Initializes and starts a background thread that continuously reads inputs from standard input (System.in) and routes them to their registered commands.
Subcommand - Annotation Interface in com.dianxin.tori.api.commands.slash.v2.annotations
Declares a nested static inner class as a runnable Discord Subcommand.
SubcommandGroup - Annotation Interface in com.dianxin.tori.api.commands.slash.v2.annotations
Declares a nested static inner class as a Discord Subcommand Group.
SubcommandRegistry - Interface in com.dianxin.tori.api.commands.registry
An interface used to register and define Discord slash subcommands.
submit() - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Submits the action for asynchronous execution and returns a CompletableFuture.
submit(boolean) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Submits the action and returns a CompletableFuture.
success(E) - Static method in class com.dianxin.tori.base.concurrent.FutureAction.Result
 

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.
Task - Class in com.dianxin.tori.base.scheduler
Represents a scheduled or running execution unit managed by Scheduler.
Task(boolean) - Constructor for class com.dianxin.tori.base.scheduler.Task
Constructs a new tracked task.
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
Deprecated.
Discord is shifting toward Slash Commands to improve user privacy, security, and discoverability. So we need to deprecate any text command classes to align with Discord's requirements. It is recommended to use Slash command registrars for better experience.
TextCommandRegistrar(String) - Constructor for class com.dianxin.tori.api.commands.TextCommandRegistrar
Deprecated.
Constructs a new TextCommandRegistrar.
timeout(long, TimeUnit) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Sets a relative timeout for this action.
TimeUtils - Class in com.dianxin.tori.base.utils
[EN] Utility class for handling time formatting and parsing.
Primarily used for media playback features like seeking and duration display.
TimeUtils() - Constructor for class com.dianxin.tori.base.utils.TimeUtils
 
TimeUtils.SeekTime - Record Class in com.dianxin.tori.base.utils
[EN] Record to store the result of time parsing.
Contains the calculated duration and whether the seek is relative to current position.
toArray(Collection<T>, IntFunction<T[]>) - Static method in class com.dianxin.tori.base.utils.ArrayUtils
Converts a Collection into an array using the provided generator function.
toHexString(Color) - Static method in class com.dianxin.tori.base.utils.ColorUtils
Converts a Color object into an uppercase Hex string (#RRGGBB).
toList(Collection<T>) - Static method in class com.dianxin.tori.base.utils.CollectionUtils
Converts a collection into a mutable List.
toList(T[]) - Static method in class com.dianxin.tori.base.utils.ArrayUtils
Converts an array into a mutable List.
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.
toSet(Collection<T>) - Static method in class com.dianxin.tori.base.utils.CollectionUtils
Converts a collection into a mutable Set.
toSet(T[]) - Static method in class com.dianxin.tori.base.utils.ArrayUtils
Converts an array into a mutable Set.
toString() - Method in record class com.dianxin.tori.base.collections.UniqueMap.Entry
Returns a string representation of this record class.
toString() - Method in class com.dianxin.tori.base.utils.EntityString
 
toString() - Method in record class com.dianxin.tori.base.utils.TimeUtils.SeekTime
Returns a string representation of this record class.
totalRetries() - Method in interface com.dianxin.tori.base.concurrent.Retry.RetryContext
The total maximum number of retries configured in the strategy.
toUnmodifiableList(Collection<T>) - Static method in class com.dianxin.tori.base.utils.CollectionUtils
Converts a collection into an unmodifiable List.
toUnmodifiableSet(Collection<T>) - Static method in class com.dianxin.tori.base.utils.CollectionUtils
Converts a collection into an unmodifiable Set.
type() - Element in annotation interface com.dianxin.tori.api.commands.slash.v2.annotations.CommandOption
The expected Discord data type for this option.

U

UniqueMap<K,V> - Interface in com.dianxin.tori.base.collections
A map that enforces a one-to-one (bijective) mapping between keys and values.
UniqueMap.Entry<K,V> - Record Class in com.dianxin.tori.base.collections
A simple immutable record representing a key-value pair.
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.
value() - Element in annotation interface com.dianxin.tori.base.annotations.ReleasedSince
The release version of the framework where this element became available (e.g., "26.9.3").
value() - Method in record class com.dianxin.tori.base.collections.UniqueMap.Entry
Returns the value of the value record component.
VersionController - Class in com.dianxin.tori.api.controller
A utility controller responsible for verifying the runtime environment's compatibility.
VersionManager - Class in com.dianxin.tori.base.utils
Utility class for querying and validating the Java runtime version.
VirtualEnvironmentBootstrap - Class in com.dianxin.tori.api.bootstrap
Bootstraps the virtual environment configuration for the application.
VirtualEnvironmentConfiguration - Class in com.dianxin.tori.base.env
Utility class for environment configuration management.

W

wakeup() - Static method in class com.dianxin.tori.base.env.VirtualEnvironmentConfiguration
 
WarnCommand - Class in com.dianxin.tori.api.commands.slash.v2.example
Example demonstrating a nested subcommand structure for a moderation warning system.
WarnCommand() - Constructor for class com.dianxin.tori.api.commands.slash.v2.example.WarnCommand
 
WarnCommand.AddWarn - Class in com.dianxin.tori.api.commands.slash.v2.example
Subcommand to issue a warning to a guild member.
WarnCommand.RemoveWarn - Class in com.dianxin.tori.api.commands.slash.v2.example
Subcommand to remove an existing warning by its identifier.
Why this class exists - Search tag in class com.dianxin.tori.api.bootstrap.VirtualEnvironmentBootstrap
Section

Y

YamlConfiguration - Class in com.dianxin.tori.base.configuration.yaml
 
YamlConfiguration() - Constructor for class com.dianxin.tori.base.configuration.yaml.YamlConfiguration
 

Z

zip(FutureAction<? extends T>, FutureAction<? extends T>...) - Method in interface com.dianxin.tori.base.concurrent.FutureAction
Zips the results of multiple actions together in parallel execution.
A B C D E F G H I J K L M N O P Q R S T U V W Y Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form