import { IConfig } from '../interfaces/Config'; import Command, { Trigger } from '../structures/Command'; import HandlesClient from './Client'; /** * Manage command loading. */ export default class CommandRegistry extends Map { /** * Get all the file paths recursively in a directory. * @param dir The directory to start at. */ private static _loadDir(dir); /** * Handles client. */ readonly handles: HandlesClient; /** * The directory from which to load commands. */ directory: string; constructor(handles: HandlesClient, config: IConfig); /** * Load all commands into memory. Use when reloading commands. */ load(): Promise; }