- All Superinterfaces:
AutoCloseable
NEED_JAVADOC
- Author:
- Ashley
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringGet the description of this plugin.default StringgetName()Get the name of this plugin.default Runtime.VersionGet the version of this plugin.voidinit(WatameBot.ProtectedJDABuilder builder) NEED_JAVADOCvoidNEED_JAVADOCvoidNEED_JAVADOCvoidpreInit()Startup method called when resources, needed for functionality initialization, are to be loaded.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
preInit
void preInit()Startup method called when resources, needed for functionality initialization, are to be loaded. Resources that do not require connection to Discord or the database should be loaded here.Database and Discord information might not be loaded at the time of this method! Use
onReady(WatameBot)for functionality that requires valid connections.Typical resources to load here include:
- SQL compiled statements
- System Data
- Files
- Images
- See Also:
-
init
NEED_JAVADOC- See Also:
-
postInit
NEED_JAVADOC- Parameters:
bot-- See Also:
-
onReady
NEED_JAVADOC- Parameters:
bot-
-
getName
Get the name of this plugin.- Returns:
- A string containing the name of the plugin
- See Also:
-
getDescription
Get the description of this plugin.- Returns:
- A string containing the description of this plugin
- See Also:
-
getVersion
Get the version of this plugin.- Returns:
- A
Runtime.Versionrepresenting this plugin - See Also:
-