Latest
interface BotWithFileLoader
implements Bot
import { type BotWithFileLoader } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/fileloader/mod.ts";

Extend the Bot with the Plugin's added functions

Properties

importDirectory: (path: string) => void

Recursively generates an array of unique paths to import using fileLoader() (Is windows compatible)

fileLoader: () => void

Writes, then imports all everything in fileloader.ts

fastFileLoader: (
paths: string[],
between?: (
path: string,
uniqueFilePathCounter: number,
paths: string[],
) => void
,
before?: (uniqueFilePathCounter: number, paths: string[]) => void,
) => void

This function will import the specified directories