Files
illegitimate-bot/src/interfaces/ICommand.ts
2024-10-07 18:16:23 +02:00

13 lines
411 B
TypeScript

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