Package org.openredstone.chad.commands.dsl

The command DSL.

Types

Link copied to clipboard
sealed class Argument
Link copied to clipboard
annotation class CommandMarker

An annotation class for the command DSL.

Link copied to clipboard
class CommandScope(authorizedRoles: List<String>?)

Used in command.

Link copied to clipboard
class ReplyScope(sender: Sender, message: Message, cs: CoroutineScope) : CoroutineScope
Link copied to clipboard
class Subcommand(command: Command)

A wrapper around a Command, for usage as a subcommand inside another command.

Functions

Link copied to clipboard
fun command(authorizedRoles: List<String>? = null, configure: CommandScope.() -> Command): Command

The command function can be used to build a command using a DSL.