CommandScope

class CommandScope(authorizedRoles: List<String>?)

Used in command.

Constructors

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

Functions

Link copied to clipboard
fun default(value: String): Argument.Default

A default argument. This is supposed to be used as a delegate.

Link copied to clipboard
fun optional(): Argument.Optional

An optional argument. This is supposed to be used as a delegate.

Link copied to clipboard
fun reply(isPrivate: Boolean = false, message: suspend ReplyScope.() -> String): Command

The reply of the command. This should be the last action in command.

Link copied to clipboard
fun required(): Argument.Required

A required argument. This is supposed to be used as a delegate.

Link copied to clipboard
fun vararg(): Argument.Vararg

Variable arguments. This is supposed to be used as a delegate.

Properties

Link copied to clipboard
var help: String? = null

Used to generate the help message.