This repository has been archived on 2025-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tingle-bot/src/interfaces/commands/Command.ts
2024-09-26 11:37:00 -07:00

15 lines
430 B
TypeScript

import {
SlashCommandBuilder,
SlashCommandSubcommandsOnlyBuilder,
} from "@discordjs/builders";
import { CommandInteraction } from "discord.js";
import { WeatherCache } from "../WeatherCache";
export interface Command {
data:
| Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">
| SlashCommandSubcommandsOnlyBuilder;
run: (interaction: CommandInteraction, CACHE: WeatherCache) => Promise<void>;
}