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