Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/harmony/src/commands/command.ts>CommandsLoader#loadDirectory

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

Load commands from a Directory.

NOTE: Relative paths resolve from cwd

Parameters

path: string

Path of the directory.

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

Options to configure loading.

Returns

Promise<Command[]>