Skip to main content
Module

x/harmony/mod.ts>CommandClient#use

An easy to use Discord API Library for Deno.
Go to Latest
method CommandClient.prototype.use
import { CommandClient } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Adds a Middleware Function to Command Client to pre-process all Commands, and can even modify the Context to include additional properties, methods, etc.

Parameters

middleware: CommandContextMiddleware<T>

Middleware function

Returns

this

Command Client