A powerful and extendable Discord bot, with it's own module system :3
thevoid.cafe/projects/voidy
1//===============================================
2// Imports
3//===============================================
4import type { Command } from "../core/types/Command";
5import { Loader } from "../core/Loader";
6
7//===============================================
8// CommandLoader Implementation
9//===============================================
10export class CommandLoader extends Loader<Command> {
11 public id = "command";
12 public async validate(data: Partial<Command>) {
13 if (!data.id || !data.data || !data.execute) return null;
14 return data as Command;
15 }
16}