Interface ServerConfiguration


public interface ServerConfiguration
Represents the core configuration settings for the Tori Server. Provides access to both the raw configuration file data and specific configuration properties.
  • Method Details

    • getConfig

      FileConfiguration getConfig()
      Retrieves the underlying raw configuration file data.
      Returns:
      The FileConfiguration instance containing all loaded settings.
    • isIgnoreErrorsOnRestAction

      boolean isIgnoreErrorsOnRestAction()
      Checks whether errors on JDA RestActions should be globally ignored.
      Returns:
      true if REST action errors are ignored (fire-and-forget fallback), false if they require explicit handling.
    • isGracefulLogOnUnknownInteractionError

      boolean isGracefulLogOnUnknownInteractionError()
      Checks whether logs Discord API Error is formatted gracefully.
      Returns:
      true if Suppresses the massive default JDA stack trace and, instead prints a clean, single-line warning in the console, when false if they prints the full ErrorResponseException and ContextException stack traces.
    • isDebug

      boolean isDebug()
      Checks whether the global debug mode is enabled for the server. When enabled, additional trace and debug level logging will be output to the console.
      Returns:
      true if debug mode is active, false otherwise.
    • isSuppressingSomePackageOnStackTraceEnabled

      @Internal boolean isSuppressingSomePackageOnStackTraceEnabled()