common / me.schlaubi.regnumutils.command / CommandClient

CommandClient

interface CommandClient

The command client.

Types

CommandEvent

class CommandEvent : GenericGuildMessageEvent

An command event.

Properties

commandAssociations

abstract val commandAssociations: Map<String, Command>

The registered aliases and their command.

commands

open val commands: List<Command>

All registered commands.

config

abstract val config: CommandClientConfiguration

The configuration of the client.

executor

abstract val executor: ExecutorService

The executor to execute command.

informationProvider

abstract val informationProvider: InformationProvider

The information provider.

permissionHandler

abstract val permissionHandler: PermissionHandler

The permission handler.

Functions

dispatchCommand

abstract fun dispatchCommand(commandEvent: CommandClient.CommandEvent): Unit

Dispatches a command from the commandEvent.

registerCommand

abstract fun registerCommand(command: Command): Unit

Registers the command.

registerCommands

open fun registerCommands(vararg commands: Command): Unit
open fun registerCommands(commands: Collection<Command>): Unit

Registers the commands.

unregisterAlias

abstract fun unregisterAlias(alias: String): Unit

Unregisters the alias.

unregisterCommand

abstract fun unregisterCommand(command: Command): Unit

Unregisters the command.