Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 7b7312d

Browse files
committed
fuck u
1 parent 2227a06 commit 7b7312d

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { nodeProfilingIntegration } from "@sentry/profiling-node";
77
import { join } from "path";
88
import url from "url";
99
import { readdirSync } from "fs";
10-
import type { GatewayEvent, EventsClass } from "./types/main.d.ts";
1110

1211
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
1312

src/types/main.d.ts

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
import { ApplicationCommandOptionBase, ChatInputCommandInteraction } from "discord.js";
22
import { KOGBot } from "index.ts";
33

4-
declare interface GatewayEvent {
5-
name: string,
6-
once: boolean;
7-
code: (...params) => Promise<void>;
8-
}
9-
10-
declare interface EventsClass {
11-
functions: Array<GatewayEvent>;
12-
parse: () => Promise<GatewayEvent[]>;
13-
listen: () => Promise<void>;
14-
}
15-
16-
declare interface SlashCommand {
17-
name: string;
18-
description: string;
19-
subcommands: Array<SlashCommand>;
20-
parameters: Array<ApplicationCommandOptionBase>;
21-
dev?: boolean;
22-
kogBot: KOGBot;
4+
global {
5+
declare interface GatewayEvent {
6+
name: string,
7+
once: boolean;
8+
code: (...params) => Promise<void>;
9+
}
10+
11+
declare interface EventsClass {
12+
functions: Array<GatewayEvent>;
13+
parse: () => Promise<GatewayEvent[]>;
14+
listen: () => Promise<void>;
15+
}
2316

24-
execute (interaction: ChatInputCommandInteraction): Promise<void>;
17+
declare interface SlashCommand {
18+
name: string;
19+
description: string;
20+
subcommands: Array<SlashCommand>;
21+
parameters: Array<ApplicationCommandOptionBase>;
22+
dev?: boolean;
23+
kogBot: KOGBot;
24+
25+
execute (interaction: ChatInputCommandInteraction): Promise<void>;
26+
}
2527
}

0 commit comments

Comments
 (0)