Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/harmony/src/commands/mod.ts>ExtensionsManager#loadDirectory

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

Load extensions 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<Extension[]>