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