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
client: CommandClient
commands: ExtensionCommands
Extensions's Commands Manager
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