generated from nhcarrigan/template
20 lines
520 B
TypeScript
20 lines
520 B
TypeScript
import {
|
|
SlashCommandBuilder,
|
|
SlashCommandOptionsOnlyBuilder,
|
|
SlashCommandSubcommandsOnlyBuilder
|
|
} from "discord.js";
|
|
|
|
import { ExtendedClient } from "./ExtendedClient";
|
|
import { GuildCommandInteraction } from "./Interactions";
|
|
|
|
export interface Command {
|
|
data:
|
|
| SlashCommandOptionsOnlyBuilder
|
|
| Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">
|
|
| SlashCommandSubcommandsOnlyBuilder;
|
|
run: (
|
|
bot: ExtendedClient,
|
|
interaction: GuildCommandInteraction
|
|
) => Promise<void>;
|
|
}
|