Package-level declarations

Types

Link copied to clipboard
open class ArgumentParsingException(val reason: Key, val argument: Argument<*>?, val arguments: Arguments, val parser: StringParser?) : DiscordRelayedException

Thrown when something happens during argument parsing.

Link copied to clipboard
class CommandRegistrationException(val name: Key, val reason: String) : KordExException

Thrown when an attempt to register a ChatCommand fails.

Link copied to clipboard
open class DiscordRelayedException(val reason: Key) : KordExException

Thrown when something exceptional happens that the actioning user on Discord needs to be aware of.

Link copied to clipboard

Thrown when an attempt to register a EventHandler fails.

Link copied to clipboard

An extensible bot, wrapping a Kord instance.

Link copied to clipboard
class InvalidArgumentException(val builder: ConverterBuilder<*>, val reason: String) : KordExException

Exception thrown when a converter builder hasn't been set up properly.

Link copied to clipboard
class InvalidCommandException(val name: Key?, val reason: String) : KordExException

Thrown when a command could not be validated.

Link copied to clipboard
class InvalidEventHandlerException(val handler: EventHandler<*>, val reason: String) : KordExException

Thrown when an EventHandler could not be validated.

Link copied to clipboard
class InvalidExtensionException(val clazz: KClass<out Extension>, val reason: String?) : KordExException

Thrown when an attempt to load an Extension fails.

Link copied to clipboard

A base class for all custom exceptions in our bot framework.

Properties

Link copied to clipboard

Bot version, as provided by the bot's kordex.properties resource.

Link copied to clipboard

Location of the data collection state file.

Link copied to clipboard
val DATA_COLLECTION: DataCollection

Data collection setting, defaulting to Standard if not set.

Link copied to clipboard

Data collection UUID, if you need to specify one instead of having the storage system take care of it.

Link copied to clipboard

Dev-mode configuration based on properties and env vars.

Link copied to clipboard
val DISCORD_BLACK: Color

Colour representing Discord's new black colour.

Link copied to clipboard
val DISCORD_BLURPLE: Color

Colour representing Discord's new blurple colour.

Link copied to clipboard
val DISCORD_FUCHSIA: Color

Colour representing Discord's new fuchsia colour.

Link copied to clipboard
val DISCORD_GREEN: Color

Colour representing Discord's new green colour.

Link copied to clipboard

Colour representing Discord's new light blurple colour.

Link copied to clipboard
val DISCORD_RED: Color

Colour representing Discord's new red colour.

Link copied to clipboard
val DISCORD_WHITE: Color

Colour representing Discord's new white colour.

Link copied to clipboard
val DISCORD_YELLOW: Color

Colour representing Discord's new yellow colour.

Link copied to clipboard

Current Kord version.

Link copied to clipboard

Configured first-party KordEx modules.

Link copied to clipboard

Convenient access to the properties stored within kordex-build.properties in your bot's resources.

Link copied to clipboard

Convenient access to the properties stored within kordex.properties in your bot's resources.

Functions

Link copied to clipboard
suspend fun ExtensibleBot(token: String, builder: suspend ExtensibleBotBuilder.() -> Unit): ExtensibleBot

DSL function for creating a bot instance. This is the Kord Extensions entrypoint.