Updated type system
This commit is contained in:
12
src/typings/Command.ts
Normal file
12
src/typings/Command.ts
Normal 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>
|
||||
}
|
||||
Reference in New Issue
Block a user