Package-level declarations

Types

Link copied to clipboard
class BotBase
Link copied to clipboard
interface BotContext

Collection of utilities for dispatched events, such as access to clients

Link copied to clipboard
Link copied to clipboard
class CommandBuilder(prefix: String, dispatcher: EventDispatcher, botContext: BotContext)
Link copied to clipboard

I'm at the (pizza hut) dispatcher, I'm at the (taco bell) bot context, I'm at the combination dispatcher and bot context

Functions

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

Function to initiate a bot using the diskord-bot DSL

Link copied to clipboard
fun BotBase.classicCommands(commandPrefix: String = ".", commands: CommandBuilder.() -> Unit)

Installs the classic command DSL and provides a scope for defining commands

Link copied to clipboard
fun BotBase.events(eventsBuilder: EventDispatcherWithContext.() -> Unit)

Allows simply forwarding events on to user space