Package cloud. commandframework. kotlin. extension
Extension functions for existing Cloud types
Functions
argument Description
Link copied to clipboard
Get a ArgumentDescription, defaulting to ArgumentDescription.empty
build And Register
Link copied to clipboard
fun <C : Any> CommandManager<C>.buildAndRegister(name: String, description: ArgumentDescription = ArgumentDescription.empty(), aliases: Array<String> = emptyArray(), lambda: MutableCommandBuilder<C>.() -> Unit): MutableCommandBuilder<C>
Content copied to clipboard
Content copied to clipboard
Create a new MutableCommandBuilder which will invoke the provided receiver lambda, and then register itself with the owning CommandManager
command
Link copied to clipboard
Build the provided MutableCommandBuilders into Commands, and then register them with the command manager
command Builder
Link copied to clipboard
fun <C : Any> CommandManager<C>.commandBuilder(name: String, description: ArgumentDescription = ArgumentDescription.empty(), aliases: Array<String> = emptyArray(), lambda: MutableCommandBuilder<C>.() -> Unit): MutableCommandBuilder<C>
Content copied to clipboard
Content copied to clipboard
Create a new MutableCommandBuilder and invoke the provided receiver lambda on it
description
Link copied to clipboard
Get a Description, defaulting to Description.empty
sender Type
Link copied to clipboard