Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
interface BotWithFileLoader
implements Bot
import { type BotWithFileLoader } from "https://deno.land/x/discordeno@13.0.0-rc45/template/beginner/deps.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