pineafan | 2c33b9f | 2022-02-25 20:35:23 +0000 | [diff] [blame^] | 1 | import { CommandInteraction } from "discord.js"; |
| 2 | import { SlashCommandBuilder } from "@discordjs/builders"; |
| 3 | import { WrappedCheck } from "jshaiku"; |
| 4 | |
| 5 | const command = new SlashCommandBuilder() |
| 6 | .setName("help") |
| 7 | .setDescription("Shows help for commands") |
| 8 | |
| 9 | const callback = (interaction: CommandInteraction) => { |
| 10 | interaction.reply("hel p"); |
| 11 | } |
| 12 | |
| 13 | const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => { |
| 14 | return true; |
| 15 | } |
| 16 | |
| 17 | export { command }; |
| 18 | export { callback }; |
| 19 | export { check }; |