Skip to main content
Module

x/discordeno/plugins/mod.ts>BotWithFileLoader

Discord API library for Deno
Extremely Popular
Go to Latest
interface BotWithFileLoader
implements Bot
import { type BotWithFileLoader } from "https://deno.land/x/discordeno@13.0.0-rc45/plugins/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