Class Plugin.Builder
java.lang.Object
com.github.alex1304.ultimategdbot.api.Plugin.Builder
- Enclosing class:
- Plugin
public static class Plugin.Builder extends Object
-
Method Summary
Modifier and Type Method Description Plugin.BuilderaddDatabaseMappingRessources(String resource, String... more)Adds one or more resource paths where database mapping files are located.Plugin.BuilderaddGuildSettingsEntry(String key, GuildSettingsEntry<?,?> entry)Adds a new entry to guild settings.Pluginbuild()Builds the plugin instance.Plugin.BuilderonReady(Supplier<reactor.core.publisher.Mono<Void>> onReady)Plugin.BuildersetCommandProvider(CommandProvider commandProvider)Sets the command provider for this plugin.
-
Method Details
-
addDatabaseMappingRessources
Adds one or more resource paths where database mapping files are located.- Parameters:
resource- the first resourcemore- other resources- Returns:
- this builder
-
addGuildSettingsEntry
Adds a new entry to guild settings.- Parameters:
key- the key of the entryentry- the entry itself- Returns:
- this builder
-
setCommandProvider
Sets the command provider for this plugin.- Parameters:
commandProvider- the command provider- Returns:
- this builder
-
onReady
-
build
Builds the plugin instance.- Returns:
- the plugin instance
-