//=============================================== // Imports //=============================================== import type { Command } from "../core/types/Command"; import { Loader } from "../core/Loader"; //=============================================== // CommandLoader Implementation //=============================================== export class CommandLoader extends Loader { public id = "command"; public async validate(data: Partial) { if (!data.id || !data.data || !data.execute) return null; return data as Command; } }