This commit is contained in:
Jill 2023-11-17 20:30:27 +03:00
parent 0594cc71db
commit c714596653
Signed by: oat
GPG Key ID: 33489AA58A955108
1 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
import { Collection, SlashCommandBuilder, CommandInteraction, Client } from 'discord.js';
export interface Command {
data: Pick<SlashCommandBuilder, "toJSON" | "name">,
execute: (interaction: CommandInteraction) => Promise<any>,
autocomplete?: (interaction: AutocompleteInteraction) => Promise<any>,
onClientReady?: (client: Client) => Promise<any>,
data: Pick<SlashCommandBuilder, 'toJSON' | 'name'>,
execute: (interaction: CommandInteraction) => Promise<unknown>,
autocomplete?: (interaction: AutocompleteInteraction) => Promise<unknown>,
onClientReady?: (client: Client) => Promise<unknown>,
serverWhitelist?: string[],
}