Skip to main content
Module

x/harmony/mod.ts>CommandsLoader#load

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

Load a Command from file.

NOTE: Relative paths resolve from cwd

Parameters

filePath: string

Path of Command file.

optional
exportName: string = [UNSUPPORTED]

Export name. Default is the "default" export.

optional
onlyRead: boolean