Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/harmony/src/commands/mod.ts>Extension

An easy to use Discord API Library for Deno.
Go to Latest
class Extension
Re-export
import { Extension } from "https://deno.land/x/harmony@v2.8.0/src/commands/mod.ts";

Customizable, isolated and pluggable Extensions are a great way of writing certain Modules independent of others

Constructors

new
Extension(client: CommandClient)

Properties

Extensions's Commands Manager

optional
description: string

Description of the Extension

events: { [name: string]: (...args: unknown[]) => unknown; }

Events registered by this Extension

name: string

Name of the Extension

optional
subPrefix: string

Sub-Prefix to be used for ALL of Extension's Commands.

Methods

listen(event: keyof ClientEvents, cb: ExtensionEventCallback): boolean

Listens for an Event through Extension.

load(): unknown | Promise<unknown>

Method called upon loading of an Extension

unload(): unknown | Promise<unknown>

Method called upon unloading of an Extension