blob: 237623d9c07ec2ac55aa04661501d230181a121b [file] [log] [blame]
pineafan377794f2022-04-18 19:01:01 +01001import { CommandInteraction } from "discord.js";
pineafan4f164f32022-02-26 22:07:12 +00002import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
3import { WrappedCheck } from "jshaiku";
pineafan377794f2022-04-18 19:01:01 +01004import close from "../../automations/tickets/delete.js";
pineafan4f164f32022-02-26 22:07:12 +00005
6const command = (builder: SlashCommandSubcommandBuilder) =>
7 builder
8 .setName("close")
9 .setDescription("Closes a ticket")
10
pineafan1dc15722022-03-14 21:27:34 +000011const callback = async (interaction: CommandInteraction) => {
pineafan377794f2022-04-18 19:01:01 +010012 await close(interaction);
pineafan4f164f32022-02-26 22:07:12 +000013}
14
15const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
16 return true;
17}
18
19export { command };
20export { callback };
21export { check };