Skip to main content
Module

x/harmony/mod.ts>CommandsLoader

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

Constructors

new
CommandsLoader(client: CommandClient)

Methods

load(
filePath: string,
exportName?: string,
onlyRead?: boolean,
): Promise<Command>

Load a Command from file.

NOTE: Relative paths resolve from cwd

loadDirectory(path: string, options?: { recursive?: boolean; exportName?: string; maxDepth?: number; exts?: string[]; onlyRead?: boolean; }): Promise<Command[]>

Load commands from a Directory.

NOTE: Relative paths resolve from cwd