Package com.dianxin.tori.api.commands
Interface CommandReplyConfig
- All Known Implementing Classes:
DefaultEnglishReplyConfig
@NullMarked
public interface CommandReplyConfig
Configuration interface for customizing the rejection messages sent by the command registrar.
Implementing this interface allows developers to support multiple languages (i18n)
or custom bot personas without modifying the core logic.
-
Method Summary
Modifier and TypeMethodDescriptiongetMissingBotPermissionMessage(net.dv8tion.jda.api.Permission permission) getMissingUserPermissionMessage(net.dv8tion.jda.api.Permission permission)
-
Method Details
-
getOwnerOnlyMessage
String getOwnerOnlyMessage()- Returns:
- The message sent when a non-owner attempts to use an Owner-only command.
-
getDmOnlyMessage
String getDmOnlyMessage()- Returns:
- The message sent when a Direct Message-only command is used in a guild.
-
getPrivateChannelOnlyMessage
String getPrivateChannelOnlyMessage()- Returns:
- The message sent when a command restricted to private channels is used elsewhere.
-
getGuildOnlyMessage
String getGuildOnlyMessage()- Returns:
- The message sent when a Guild-only command is used in a direct message.
-
getMissingUserPermissionMessage
- Parameters:
permission- The specific permission the user is missing.- Returns:
- The message sent when the user lacks the required permission.
-
getMissingBotPermissionMessage
- Parameters:
permission- The specific permission the bot is missing.- Returns:
- The message sent when the bot lacks the required permission to handle the command.
-
getCommandNotFoundMessage
String getCommandNotFoundMessage()- Returns:
- The message sent when an unknown or unloaded command is triggered.
-