Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/harmony/src/commands/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/src/commands/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