java.lang.Object
net.foxgenesis.watame.sql.GuildData
- All Implemented Interfaces:
AutoCloseable,IGuildData
Class used to contain guild database data.
- Author:
- Ashley
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Get the guild JSON configuration.net.dv8tion.jda.api.entities.GuildgetGuild()Get theGuildrepresented by this instance.net.dv8tion.jda.api.entities.ChannelGet the channel designated as the log channel.Get the temporary data store for this instance.toString()
-
Method Details
-
getGuild
public net.dv8tion.jda.api.entities.Guild getGuild()Description copied from interface:IGuildDataGet theGuildrepresented by this instance.- Specified by:
getGuildin interfaceIGuildData- Returns:
- The guild used
-
getConfig
Description copied from interface:IGuildDataGet the guild JSON configuration.- Specified by:
getConfigin interfaceIGuildData- Returns:
- An extension of a
JSONObjectwith a set function for updates and removals ornullif no database data has been passed
-
getLogChannel
@CheckForNull public net.dv8tion.jda.api.entities.Channel getLogChannel()Description copied from interface:IGuildDataGet the channel designated as the log channel.- Specified by:
getLogChannelin interfaceIGuildData- Returns:
- A
Channelas designated ornullif none was set
-
getTempData
Description copied from interface:IGuildDataGet the temporary data store for this instance.- Specified by:
getTempDatain interfaceIGuildData- Returns:
- A concurrent map containing temporary data
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
toString
-