+1
-1
src/core/Loader.ts
+1
-1
src/core/Loader.ts
···
20
20
}
21
21
22
22
/**
23
-
* Recursively collects data from a directory based on the directory specificed in dataSource property.
23
+
* Recursively collects data from a directory based on the path specificed in dataSource property.
24
24
*/
25
25
public async collect() {
26
26
const glob = new Glob(`**.ts`);
+2
-2
src/events/ready.ts
+2
-2
src/events/ready.ts
+4
-4
src/loaders/EventLoader.ts
+4
-4
src/loaders/EventLoader.ts
···
1
1
import { Events } from "discord.js";
2
2
import { Loader } from "../core/Loader";
3
3
4
-
export interface IEvent {
4
+
export interface Event {
5
5
name: Events,
6
6
once?: boolean,
7
7
execute: () => void,
8
8
}
9
9
10
-
export class EventLoader extends Loader<IEvent> {
11
-
public override async validate(data: Partial<IEvent>) {
10
+
export class EventLoader extends Loader<Event> {
11
+
public override async validate(data: Partial<Event>) {
12
12
if (!data.name || !data.execute) return null;
13
-
return data as IEvent;
13
+
return data as Event;
14
14
}
15
15
}