Class Module

java.lang.Object
enterprises.iwakura.modularbot.base.Module

public abstract class Module extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCommandClientBuilderInitialization(@NonNull com.jagrosh.jdautilities.command.CommandClientBuilder commandClientBuilder)
    This method is called when the JDA Utilities' CommandClientBuilder is initializing.
    void
    onConsoleCommandRegistration(@NonNull enterprises.iwakura.ganyu.Ganyu ganyu)
    This method is called when Modular Bot is registering console commands
    abstract void
    This method is called when the module is disabling
    abstract void
    This method is called when the module is enabling
    void
    This method is called when the module is loaded
    void
    onShardManagerBuilderInitialization(@NonNull net.dv8tion.jda.api.sharding.DefaultShardManagerBuilder shardManagerBuilder)
    This method is called when the JDA is initializing.
    void
    onUncaughtException(@NonNull Throwable throwable)
    This method is called when some exception is uncaught
    void
    This method is called when the module is unloaded

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Module

      public Module()
  • Method Details

    • onLoad

      public void onLoad()
      This method is called when the module is loaded
    • onEnable

      public abstract void onEnable()
      This method is called when the module is enabling
    • onDisable

      public abstract void onDisable()
      This method is called when the module is disabling
    • onUnload

      public void onUnload()
      This method is called when the module is unloaded
    • onCommandClientBuilderInitialization

      public void onCommandClientBuilderInitialization(@NonNull @NonNull com.jagrosh.jdautilities.command.CommandClientBuilder commandClientBuilder)
      This method is called when the JDA Utilities' CommandClientBuilder is initializing. You cna register commands here and more.
      Parameters:
      commandClientBuilder - Non-null CommandClientBuilder
    • onShardManagerBuilderInitialization

      public void onShardManagerBuilderInitialization(@NonNull @NonNull net.dv8tion.jda.api.sharding.DefaultShardManagerBuilder shardManagerBuilder)
      This method is called when the JDA is initializing. You can register events here and more.
      Parameters:
      shardManagerBuilder - Non-null DefaultShardManagerBuilder
    • onConsoleCommandRegistration

      public void onConsoleCommandRegistration(@NonNull @NonNull enterprises.iwakura.ganyu.Ganyu ganyu)
      This method is called when Modular Bot is registering console commands
      Parameters:
      ganyu - Non-null Ganyu
    • onUncaughtException

      public void onUncaughtException(@NonNull @NonNull Throwable throwable)
      This method is called when some exception is uncaught
      Parameters:
      throwable - Non-null Throwable