forked from kabirjaipal/discordjs-base-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
57 lines (51 loc) · 1.45 KB
/
index.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
51
52
53
54
55
56
57
import {
ApplicationCommandType,
ClientEvents,
CommandInteraction,
ContextMenuCommandInteraction,
Interaction,
InteractionReplyOptions,
Message,
} from "discord.js";
import { Bot } from "./handlers/Client.js";
import { ApplicationCommandNonOptions, Events } from "discord.js/typings";
export interface Mcommand {
name: string;
description: string;
userPermissions: bigint;
botPermissions: bigint;
category: string;
type: number;
owneronly: boolean;
run: (client: Bot, message: Message, args: string[], prefix: string) => {};
}
export interface Scommand {
name: string;
description: string;
userPermissions: bigint;
botPermissions: bigint;
category: string;
type: ApplicationCommandType.ChatInput;
options?: ApplicationCommandNonOptions[];
run: (client: Bot, interaction: CommandInteraction) => {};
}
export interface CMcommand {
name: string;
category: string;
type: ApplicationCommandType.Message;
run: (client: Bot, interaction: ContextMenuCommandInteraction) => {};
}
export interface CUcommand {
name: string;
category: string;
type: ApplicationCommandType.User;
run: (client: Bot, interaction: ContextMenuCommandInteraction) => {};
}
export type EventHandler = {
name: keyof ClientEvents;
run: (client: Bot, ...args: ClientEvents[keyof ClientEvents]) => void;
};
export type send = (
interaction: Interaction,
data: InteractionReplyOptions
) => void;