blob: 2f3ddc65951986c9c7119784728c93a8c7256af9 [file] [log] [blame]
import type { CommandInteraction } from "discord.js";
import type { SlashCommandSubcommandBuilder } from "discord.js";
import create from "../../actions/tickets/create.js";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("create")
.setDescription("Creates a new modmail ticket")
.addStringOption((option) =>
option.setName("message").setDescription("The content of the ticket").setRequired(false)
);
const callback = async (interaction: CommandInteraction): Promise<void> => {
await create(interaction);
};
export { command };
export { callback };