BotCommands

Entry point for the BotCommands framework.

The only requirement for a basic bot is a service extending JDAService, learn more on the wiki.

Spring support

Spring users must not use this, the framework will autoconfigure itself.

See also

@BService

@InterfacedService

@Command

Properties

Link copied to clipboard
@ExperimentalMethodAccessorsApi
@get:JvmName(name = "isPreferClassFileAccessors")
var preferClassFileAccessors: Boolean

If enabled, instructs the framework to prefer using improved reflection calls, with the following benefits:

Functions

Link copied to clipboard
fun create(configConsumer: BConfigBuilder.() -> Unit): BContext

Creates a new instance of the framework.

Link copied to clipboard
@JvmName(name = "create")
fun createJava(configConsumer: ReceiverConsumer<BConfigBuilder>): BContext

Creates a new instance of the framework.

Link copied to clipboard
@ExperimentalMethodAccessorsApi
fun preferClassFileAccessors()

Instructs the framework to prefer using improved reflection calls, with the following benefits: