import type {
  ChatInputCommandInteraction,
  RESTPostAPIChatInputApplicationCommandsJSONBody,
} from "discord.js";

export type SlashLikeBuilder = {
  name: string;
  toJSON: () => RESTPostAPIChatInputApplicationCommandsJSONBody;
};

export interface CommandModule {
  data: SlashLikeBuilder;
  execute: (interaction: ChatInputCommandInteraction) => Promise<void>;
}
