blob: 5a3371ee1a876a8f4f6fbaf6d6b9c9cbadce9f13 [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";
pineafan73a7c4a2022-07-24 10:38:04 +01004import close from "../../actions/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
pineafan4edb7762022-06-26 19:21:04 +010011const callback = async (interaction: CommandInteraction): Promise<any> => {
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 };