Companion

object Companion : EventDispatcherFeature<ChatCommands.Config, ChatCommands>

Adds the functionality to the DiscordClient to easily listen to and parse user commands. Must be configured with command prefix and commands.

Functions

checkRequiredFeatures
Link copied to clipboard
fun checkRequiredFeatures()
install
Link copied to clipboard
open suspend override fun EventDispatcher.install(scope: CoroutineScope, configuration: ChatCommands.Config.() -> Unit): ChatCommands

Feature installation script

Properties

key
Link copied to clipboard
val key: AttributeKey<ChatCommands>
requiredFeatures
Link copied to clipboard
val requiredFeatures: List<Feature<*, *, *>>

Sources

jvm source
Link copied to clipboard