Module watamebot

Class GuildData

java.lang.Object
net.foxgenesis.watame.sql.GuildData
All Implemented Interfaces:
AutoCloseable, IGuildData

public class GuildData extends Object implements IGuildData, AutoCloseable
Class used to contain guild database data.
Author:
Ashley
  • Method Details

    • getGuild

      public net.dv8tion.jda.api.entities.Guild getGuild()
      Description copied from interface: IGuildData
      Get the Guild represented by this instance.
      Specified by:
      getGuild in interface IGuildData
      Returns:
      The guild used
    • getConfig

      @Nullable public JSONObjectAdv getConfig()
      Description copied from interface: IGuildData
      Get the guild JSON configuration.
      Specified by:
      getConfig in interface IGuildData
      Returns:
      An extension of a JSONObject with a set function for updates and removals or null if no database data has been passed
    • getLogChannel

      @CheckForNull public net.dv8tion.jda.api.entities.Channel getLogChannel()
      Description copied from interface: IGuildData
      Get the channel designated as the log channel.
      Specified by:
      getLogChannel in interface IGuildData
      Returns:
      A Channel as designated or null if none was set
    • getTempData

      public ConcurrentHashMap<String,Object> getTempData()
      Description copied from interface: IGuildData
      Get the temporary data store for this instance.
      Specified by:
      getTempData in interface IGuildData
      Returns:
      A concurrent map containing temporary data
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object