-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
discord-multi-handler.d.ts
50 lines (40 loc) · 1.19 KB
/
discord-multi-handler.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
declare module 'discord-multi-handler' {
import { Collection, Client } from "discord.js";
export class CommandHandler {
constructor(client: Client);
fetchCommands: (options: {
directory: string
singleFolder?: boolean
}) => Collection<string, Record<string, any>>;
addCommand: (path: string) => void;
reloadCommand: (cmd: string) => {
success: boolean,
error: string | false
}
}
export class EventHandler {
constructor(client: Client);
fetchEvents: (options: {
directory: string
singleFolder?: boolean
}) => void;
}
export class FunctionHandler {
constructor(client: Client);
fetchFunctions: (options: {
directory: string
singleFolder?: boolean
useAlt?: boolean
useFolder?: boolean
}) => void;
reloadFunction: (options: {
func: string
findSpecific?: boolean
folder?: string
}) => {
success: boolean,
error: string | false
};
}
export function log(message: string): void;
}