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.Builder
addDatabaseMappingRessources(String resource, String... more)
Adds one or more resource paths where database mapping files are located.Plugin.Builder
addGuildSettingsEntry(String key, GuildSettingsEntry<?,?> entry)
Adds a new entry to guild settings.Plugin
build()
Builds the plugin instance.Plugin.Builder
onReady(Supplier<reactor.core.publisher.Mono<Void>> onReady)
Plugin.Builder
setCommandProvider(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
-