| import { CommandInteraction } from "discord.js"; |
| import { SlashCommandSubcommandBuilder } from "@discordjs/builders"; |
| import { WrappedCheck } from "jshaiku"; |
| import create from "../../automations/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) => { |
| await create(interaction) |
| } |
| |
| const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => { |
| return true; |
| } |
| |
| export { command }; |
| export { callback }; |
| export { check }; |