Updated interfacecs
This commit is contained in:
@@ -4,6 +4,5 @@ import { AutocompleteInteraction } from "discord.js"
|
||||
export default interface Autocomplete {
|
||||
name: string
|
||||
description: string
|
||||
type: "autocomplete"
|
||||
execute: (interacion: AutocompleteInteraction) => Promise<void>
|
||||
}
|
||||
|
||||
@@ -4,6 +4,5 @@ import { ButtonInteraction } from "discord.js"
|
||||
export default interface Button {
|
||||
name: string
|
||||
description: string
|
||||
type: "button"
|
||||
execute: (interaction: ButtonInteraction) => Promise<void>
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -7,7 +7,6 @@ import {
|
||||
export default interface ContextMenu {
|
||||
name: string
|
||||
description: string
|
||||
type: "contextmenu"
|
||||
dev?: boolean
|
||||
data: ContextMenuCommandBuilder
|
||||
execute: (interaction: ContextMenuCommandInteraction) => Promise<void>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -4,6 +4,5 @@ import { ModalSubmitInteraction } from "discord.js"
|
||||
export default interface Modal {
|
||||
name: string
|
||||
description: string
|
||||
type: "modal"
|
||||
execute: (interaction: ModalSubmitInteraction) => Promise<void>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user