Module watamebot

Class Context

java.lang.Object
net.foxgenesis.watame.Context
All Implemented Interfaces:
Closeable, AutoCloseable

public class Context extends Object implements Closeable
  • Constructor Details

    • Context

      public Context(@Nonnull WatameBot bot, @Nonnull net.dv8tion.jda.api.JDABuilder builder, @Nullable ExecutorService executor)
  • Method Details

    • getDatabaseManager

      @Nonnull public DatabaseManager getDatabaseManager()
    • getEventRegister

      @Nonnull public EventStore getEventRegister()
    • getAsynchronousExecutor

      @Nonnull public ExecutorService getAsynchronousExecutor()
    • getJDA

      @Nullable public net.dv8tion.jda.api.JDA getJDA()
    • getState

      @Nonnull public WatameBot.State getState()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable