Skyler Turner | 66ac794 | 2022-02-24 01:59:22 +0000 | [diff] [blame] | 1 | import { CommandInteraction } from "discord.js"; |
| 2 | import { SlashCommandSubcommandBuilder } from "@discordjs/builders"; |
| 3 | import { WrappedCheck } from "jshaiku"; |
| 4 | |
| 5 | const command = (builder: SlashCommandSubcommandBuilder) => |
| 6 | builder |
pineafan | 2c33b9f | 2022-02-25 20:35:23 +0000 | [diff] [blame^] | 7 | .setName("create") |
| 8 | .setDescription("Creates a new modmail ticket") |
Skyler Turner | 66ac794 | 2022-02-24 01:59:22 +0000 | [diff] [blame] | 9 | |
| 10 | const callback = (interaction: CommandInteraction) => { |
pineafan | 2c33b9f | 2022-02-25 20:35:23 +0000 | [diff] [blame^] | 11 | interaction.reply("Command incomplete [ticket/create]"); |
Skyler Turner | 66ac794 | 2022-02-24 01:59:22 +0000 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => { |
pineafan | 2c33b9f | 2022-02-25 20:35:23 +0000 | [diff] [blame^] | 15 | return true; |
Skyler Turner | 66ac794 | 2022-02-24 01:59:22 +0000 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | export { command }; |
| 19 | export { callback }; |
| 20 | export { check }; |