ExtensibleBotBuilder
Builder class used for configuring and creating an ExtensibleBot.
This is a one-stop-shop for pretty much everything you could possibly need to change to configure your bot, via properties and a bunch of DSL functions.
Properties
Whether to add KordEx's default health-checks. Defaults to true.
The number of threads to use for autocomplete event coroutines.
The bot's version. Set this yourself manually or use the KordEx Gradle plugin.
Called to create an ExtensibleBot, can be set to the constructor of your own subtype if needed.
Data collection mode, usually configured in other ways, but you may override that configuration here.
The number of threads to use for interaction event coroutines.
Logging level Koin should use, defaulting to ERROR.
Functions
DSL function used to configure information about the bot.
DSL function used to configure the bot's application command options.
DSL function used to configure the bot's caching options.
DSL function used to configure the bot's chat command options.
DSL function used to configure the bot's components system.
Function allowing you to specify a callable that constructs and returns a Kord instance. This can be used to specify your own Kord subclass, if you need to - but shouldn't be a replacement for registering a kord configuration builder.
Call this to register a custom data adapter class. Generally you'd pass a constructor here, but you can also provide a lambda if needed.
Register the message builder responsible for formatting error responses, which are sent to users during command and component body execution.
DSL function used to configure the bot's extension options, and add extensions. Calls to this function do not run immediately, so that plugins can be loaded beforehand.
DSL function used to insert code at various points in the bot's lifecycle.
DSL function used to configure the bot's i18n settings.
Set an event-filtering predicate, which may selectively prevent Kord-created events from being processed by returning false.
Set an event-filtering predicate, which may selectively prevent KordEx-created events from being processed by returning false.
DSL function used to configure the bot's member-related options.
DSL function used to configure the bot's plugin loading options.