This repository was archived by the owner on May 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +22
-21
lines changed
Expand file tree Collapse file tree 2 files changed +22
-21
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import { nodeProfilingIntegration } from "@sentry/profiling-node";
77import { join } from "path" ;
88import url from "url" ;
99import { readdirSync } from "fs" ;
10- import type { GatewayEvent , EventsClass } from "./types/main.d.ts" ;
1110
1211const __dirname = url . fileURLToPath ( new URL ( '.' , import . meta. url ) ) ;
1312
Original file line number Diff line number Diff line change 11import { ApplicationCommandOptionBase , ChatInputCommandInteraction } from "discord.js" ;
22import { 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}
You can’t perform that action at this time.
0 commit comments