Class DefaultEnglishReplyConfig

java.lang.Object
com.dianxin.tori.api.commands.DefaultEnglishReplyConfig
All Implemented Interfaces:
CommandReplyConfig

@NullMarked public class DefaultEnglishReplyConfig extends Object implements CommandReplyConfig
The default English implementation of CommandReplyConfig. Provides standard, readable error messages for all command validation failures.
  • Constructor Details

    • DefaultEnglishReplyConfig

      public DefaultEnglishReplyConfig()
  • Method Details

    • getOwnerOnlyMessage

      public String getOwnerOnlyMessage()
      Specified by:
      getOwnerOnlyMessage in interface CommandReplyConfig
      Returns:
      The message sent when a non-owner attempts to use an Owner-only command.
    • getDmOnlyMessage

      public String getDmOnlyMessage()
      Specified by:
      getDmOnlyMessage in interface CommandReplyConfig
      Returns:
      The message sent when a Direct Message-only command is used in a guild.
    • getPrivateChannelOnlyMessage

      public String getPrivateChannelOnlyMessage()
      Specified by:
      getPrivateChannelOnlyMessage in interface CommandReplyConfig
      Returns:
      The message sent when a command restricted to private channels is used elsewhere.
    • getGuildOnlyMessage

      public String getGuildOnlyMessage()
      Specified by:
      getGuildOnlyMessage in interface CommandReplyConfig
      Returns:
      The message sent when a Guild-only command is used in a direct message.
    • getMissingUserPermissionMessage

      public String getMissingUserPermissionMessage(net.dv8tion.jda.api.Permission permission)
      Specified by:
      getMissingUserPermissionMessage in interface CommandReplyConfig
      Parameters:
      permission - The specific permission the user is missing.
      Returns:
      The message sent when the user lacks the required permission.
    • getMissingBotPermissionMessage

      public String getMissingBotPermissionMessage(net.dv8tion.jda.api.Permission permission)
      Specified by:
      getMissingBotPermissionMessage in interface CommandReplyConfig
      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

      public String getCommandNotFoundMessage()
      Specified by:
      getCommandNotFoundMessage in interface CommandReplyConfig
      Returns:
      The message sent when an unknown or unloaded command is triggered.