Package com.dianxin.tori.api.commands
Class DefaultEnglishReplyConfig
java.lang.Object
com.dianxin.tori.api.commands.DefaultEnglishReplyConfig
- All Implemented Interfaces:
CommandReplyConfig
The default English implementation of
CommandReplyConfig.
Provides standard, readable error messages for all command validation failures.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMissingBotPermissionMessage(net.dv8tion.jda.api.Permission permission) getMissingUserPermissionMessage(net.dv8tion.jda.api.Permission permission)
-
Constructor Details
-
DefaultEnglishReplyConfig
public DefaultEnglishReplyConfig()
-
-
Method Details
-
getOwnerOnlyMessage
- Specified by:
getOwnerOnlyMessagein interfaceCommandReplyConfig- Returns:
- The message sent when a non-owner attempts to use an Owner-only command.
-
getDmOnlyMessage
- Specified by:
getDmOnlyMessagein interfaceCommandReplyConfig- Returns:
- The message sent when a Direct Message-only command is used in a guild.
-
getPrivateChannelOnlyMessage
- Specified by:
getPrivateChannelOnlyMessagein interfaceCommandReplyConfig- Returns:
- The message sent when a command restricted to private channels is used elsewhere.
-
getGuildOnlyMessage
- Specified by:
getGuildOnlyMessagein interfaceCommandReplyConfig- Returns:
- The message sent when a Guild-only command is used in a direct message.
-
getMissingUserPermissionMessage
- Specified by:
getMissingUserPermissionMessagein interfaceCommandReplyConfig- Parameters:
permission- The specific permission the user is missing.- Returns:
- The message sent when the user lacks the required permission.
-
getMissingBotPermissionMessage
- Specified by:
getMissingBotPermissionMessagein interfaceCommandReplyConfig- 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
- Specified by:
getCommandNotFoundMessagein interfaceCommandReplyConfig- Returns:
- The message sent when an unknown or unloaded command is triggered.
-