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