Updated interfacecs

This commit is contained in:
2024-01-18 15:34:55 +01:00
parent 4cfe877feb
commit 847a8663d8
71 changed files with 207 additions and 79 deletions

View File

@@ -4,6 +4,5 @@ import { AutocompleteInteraction } from "discord.js"
export default interface Autocomplete {
name: string
description: string
type: "autocomplete"
execute: (interacion: AutocompleteInteraction) => Promise<void>
}

View File

@@ -4,6 +4,5 @@ import { ButtonInteraction } from "discord.js"
export default interface Button {
name: string
description: string
type: "button"
execute: (interaction: ButtonInteraction) => Promise<void>
}

View File

@@ -5,11 +5,11 @@ import { ExtendedClient as Client } from "utils/Client"
export default interface Command {
name: string
description: string
type: "slash"
dev?: boolean
public: boolean
data: SlashCommandBuilder
disabled?: boolean
subcommands?: boolean
data: SlashCommandBuilder
execute: (
interaction: ChatInputCommandInteraction,
client: Client,

View File

@@ -7,7 +7,6 @@ import {
export default interface ContextMenu {
name: string
description: string
type: "contextmenu"
dev?: boolean
data: ContextMenuCommandBuilder
execute: (interaction: ContextMenuCommandInteraction) => Promise<void>

View File

@@ -4,7 +4,6 @@ import { ClientEvents } from "discord.js"
export default interface Event {
name: string
description: string
type: "event"
event: keyof ClientEvents
disabled?: boolean
execute(...args: any[]): void

View File

@@ -4,6 +4,5 @@ import { ModalSubmitInteraction } from "discord.js"
export default interface Modal {
name: string
description: string
type: "modal"
execute: (interaction: ModalSubmitInteraction) => Promise<void>
}