Class Plugin.Builder
- java.lang.Object
-
- com.github.alex1304.ultimategdbot.api.Plugin.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
addDatabaseMappingRessources
public Plugin.Builder addDatabaseMappingRessources(String resource, String... more)
Adds one or more resource paths where database mapping files are located.- Parameters:
resource
- the first resourcemore
- other resources- Returns:
- this builder
-
addGuildSettingsEntry
public Plugin.Builder addGuildSettingsEntry(String key, GuildSettingsEntry<?,?> entry)
Adds a new entry to guild settings.- Parameters:
key
- the key of the entryentry
- the entry itself- Returns:
- this builder
-
setCommandProvider
public Plugin.Builder setCommandProvider(CommandProvider commandProvider)
Sets the command provider for this plugin.- Parameters:
commandProvider
- the command provider- Returns:
- this builder
-
onReady
public Plugin.Builder onReady(Supplier<reactor.core.publisher.Mono<Void>> onReady)
-
build
public Plugin build()
Builds the plugin instance.- Returns:
- the plugin instance
-
-