Converted main codebase to typescript
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
13
src/interfaces/Command.ts
Normal file
13
src/interfaces/Command.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { ChatInputCommandInteraction, SlashCommandBuilder} from "discord.js"
|
||||
import { ExtendedClient as Client } from "../utils/Client"
|
||||
|
||||
export default interface Command {
|
||||
name: string
|
||||
description: string
|
||||
type: "slash"
|
||||
dev?: boolean
|
||||
public: boolean
|
||||
data: Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup" | "addIntegerOption">
|
||||
subcommands?: boolean
|
||||
execute: (interaction: ChatInputCommandInteraction, client: Client) => Promise<void>
|
||||
}
|
||||
Reference in New Issue
Block a user