class CommandClient
implements CommandClientOptions
extends Client
Re-export
import { CommandClient } from "https://deno.land/x/harmony@v2.8.0/src/commands/mod.ts";
Harmony Client with extended functionality for Message based Commands parsing and handling.
See InteractionsClient (Client#slash
) for more info about Slash Commands.
Constructors
new
CommandClient(options: CommandClientOptions)Properties
categories: CategoriesManager
commands: CommandsManager
extensions: ExtensionsManager
middlewares: Array<CommandContextMiddleware<CommandContext>>
Methods
processMessage(msg: Message): Promise<any>
Processes a Message to Execute Command.
use<T extends CommandContext>(middleware: CommandContextMiddleware<T>): this
Adds a Middleware Function to Command Client to pre-process all Commands, and can even modify the Context to include additional properties, methods, etc.