java.lang.Object
net.foxgenesis.watame.WatameBot
Class containing WatameBot implementation
- Author:
- Ashley
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionNEED_JAVADOCgetDataForGuild(net.dv8tion.jda.api.entities.Guild guild) Deprecated, for removal: This API element is subject to removal in a future version.ImmutableProperty<String,net.dv8tion.jda.api.entities.Guild, IGuildPropertyMapping> Get the logging channel property for a guild.static WatameBotDeprecated, for removal: This API element is subject to removal in a future version.net.dv8tion.jda.api.JDAgetJDA()NEED_JAVADOCGet the property provider instance.getState()Get the current state of the bot.booleanCheck if this instancesJDAis built and connected to Discord.
-
Field Details
-
logger
public static final org.slf4j.Logger loggerGeneral purpose logger -
INSTANCE
Singleton instance of class
-
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Get the singleton instance ofWatameBot.If the instance has not been created yet, one will be upon calling this method.
- Returns:
- Instance of
WatameBot
-
isConnectedToDiscord
public boolean isConnectedToDiscord()Check if this instancesJDAis built and connected to Discord.- Returns:
JDAinstance is built and its current status isJDA.Status.CONNECTED.
-
getDatabaseManager
NEED_JAVADOC- Returns:
-
getDataForGuild
@Deprecated(forRemoval=true) public IGuildData getDataForGuild(net.dv8tion.jda.api.entities.Guild guild) Deprecated, for removal: This API element is subject to removal in a future version. -
getPropertyProvider
Get the property provider instance.- Returns:
- The current
IPropertyProviderinstance
-
getGuildLoggingChannel
public ImmutableProperty<String,net.dv8tion.jda.api.entities.Guild, getGuildLoggingChannel()IGuildPropertyMapping> Get the logging channel property for a guild.- Returns:
- Returns the
ImmutablePropertypointing to the log channel
-
getJDA
public net.dv8tion.jda.api.JDA getJDA()NEED_JAVADOC- Returns:
-
getState
Get the current state of the bot.- Returns:
- Returns the
WatameBot.Stateof the bot - See Also:
-