Skip to main content
Module

x/harmony/mod.ts>subcommand

An easy to use Discord API Library for Deno.
Latest
function subcommand
import { subcommand } from "https://deno.land/x/harmony@v2.9.1/mod.ts";

Sub Command decorator. Decorates the function with optional metadata as a Sub Command registered upon constructing class.

Parameters

optional
options: CommandOptions

Returns

(original: (...args: any[]) => any, ctx: ClassMethodDecoratorContext<Command>) => (...args: any[]) => any