Skip to main content
Module

x/harmony/mod.ts>CommandsLoader#loadDirectory

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

Load commands from a Directory.

NOTE: Relative paths resolve from cwd

Parameters

path: string

Path of the directory.

optional
options: { recursive?: boolean; exportName?: string; maxDepth?: number; exts?: string[]; onlyRead?: boolean; }

Options to configure loading.

Returns

Promise<Command[]>