blob: cc1d031118541074c6281f0dc28e4d78d7b00115 [file] [log] [blame]
Skyler Turner66ac7942022-02-24 01:59:22 +00001import { CommandInteraction } from "discord.js";
2import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
3import { WrappedCheck } from "jshaiku";
4
5const command = (builder: SlashCommandSubcommandBuilder) =>
6 builder
7 .setName("examplesubcommand")
8 .setDescription("An example subcommand")
9
10const callback = (interaction: CommandInteraction) => {
11 interaction.reply("Hello, world!");
12}
13
14const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
15 return interaction.user.id !== "123456789";
16}
17
18export { command };
19export { callback };
20export { check };