xyter/src/commands/quotes/index.ts
Vermium Sifell ce7d3d8695 fix: 🚚 rename quote to quotes
Renamed /quote to /quotes
2023-05-29 17:31:17 +02:00

23 lines
609 B
TypeScript

import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js";
// Subcommands
import {
SubcommandHandlers,
executeSubcommand,
} from "../../handlers/executeSubcommand";
import * as post from "./subcommands/post";
const subcommandHandlers: SubcommandHandlers = {
post: post.execute,
};
export const builder = new SlashCommandBuilder()
.setName("quotes")
.setDescription("Fun commands.")
.addSubcommand(post.builder);
// Execute function
export const execute = async (interaction: ChatInputCommandInteraction) => {
await executeSubcommand(interaction, subcommandHandlers);
};