Updated type system

This commit is contained in:
2025-01-12 19:14:08 +01:00
parent 69061ba41d
commit 4f1ea148c5
88 changed files with 110 additions and 118 deletions

12
src/typings/Command.ts Normal file
View File

@@ -0,0 +1,12 @@
import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js"
import { ExtendedClient as Client } from "~/utils/Client.js"
export interface ICommand {
name: string
description: string
dev?: boolean
public: boolean
subcommands?: boolean
data: SlashCommandBuilder
execute: (arg: { interaction: ChatInputCommandInteraction, client: Client }) => Promise<void>
}