Class PUtilsConfig

java.lang.Object
com.github.ygimenez.model.PUtilsConfig

public abstract class PUtilsConfig extends Object
Utility class holding library-wide settings.
  • Method Details

    • getLogLevel

      public static PUtilsConfig.LogLevel getLogLevel()
      Retrieves the PUtilsConfig.LogLevel currently configured.
      Returns:
      The current PUtilsConfig.LogLevel.
    • setLogLevel

      public static void setLogLevel(PUtilsConfig.LogLevel logLevel)
      Set the library's PUtilsConfig.LogLevel.
      Parameters:
      logLevel - The desired PUtilsConfig.LogLevel (default: PUtilsConfig.LogLevel.LEVEL_1).
    • getOnRemove

      public static ThrowingConsumer<net.dv8tion.jda.api.interactions.InteractionHook> getOnRemove()
      Retrieve the action performed when encounteing an unmapped event.
      Returns:
      The action to be performed.
    • setOnRemove

      public static void setOnRemove(ThrowingConsumer<net.dv8tion.jda.api.interactions.InteractionHook> onRemove)
      Set the action to be performed when encountering an unmapped event. This defaults to simply removing the message buttons.
      Parameters:
      onRemove - The action to be performed (the interaction is automatically acknowledged).