ExtensibleBot
An extensible bot, wrapping a Kord instance.
This is your jumping-off point. ExtensibleBot provides a system for managing extensions, commands and event handlers. Either subclass ExtensibleBot or use it as-is if it suits your needs.
You shouldn't construct this class directly - use the builder pattern via the companion object's invoke method: ExtensibleBot(token) { extensions { add(::MyExtension) } }.
Parameters
Bot builder object containing the bot's settings.
Token for connecting to Discord.
Properties
A list of all registered event handlers.
A map of the names of all loaded Extensions to their instances.
Functions
This function adds all of the default extensions when the bot is being set up.
Directly register an EventHandler to this bot.
Install an Extension to this bot.
Find the first loaded extension that is an instance of the type provided in T.
Find all loaded extensions that are instances of the type provided in T.
Reload an unloaded Extension from this bot, by name.
Directly register an EventHandler to this bot.
Directly remove a registered EventHandler from this bot.
Start up the bot and log into Discord, but launched via Kord's coroutine scope.
Unload an installed Extension from this bot, by name.