Create types/index.d.ts
Browse files- types/index.d.ts +11 -0
types/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { ChatInputCommandInteraction, Message } from "discord.js";
|
| 2 |
+
|
| 3 |
+
export interface Command {
|
| 4 |
+
data: {
|
| 5 |
+
name: string;
|
| 6 |
+
description: string;
|
| 7 |
+
toJSON: () => any;
|
| 8 |
+
};
|
| 9 |
+
ownersOnly?: boolean;
|
| 10 |
+
execute: (input: ChatInputCommandInteraction | Message, args?: string[]) => Promise<void>;
|
| 11 |
+
}
|