KordExPlugin

abstract class KordExPlugin : Plugin, KordExKoinComponent

Abstract class representing a plugin.

The bot will always load registered plugins at the end of the setup process so that everything else is available and ready to be used.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Quick access to the bot object.

Link copied to clipboard
val kord: Kord

Quick access to the Kord object.

Functions

Link copied to clipboard
open override fun delete()
Link copied to clipboard
open fun extension(builder: ExtensionBuilder)

Register an extension to be loaded that's part of this plugin.

Link copied to clipboard
open override fun getKoin(): Koin

Get the associated Koin instance.

Link copied to clipboard
fun getWrapper(): PluginWrapper
Link copied to clipboard
open fun settings(body: SettingsCallback)

Modify the current bot's settings.

Link copied to clipboard
abstract suspend fun setup()

Override this to set up and configure your plugin.

Link copied to clipboard
open override fun start()
Link copied to clipboard
open override fun stop()