blob: 231928406af4e7481cc219019182f586d6a25091 [file] [log] [blame]
pineafan63fc5e22022-08-04 22:04:10 +01001import type { CommandInteraction } from "discord.js";
pineafan4f164f32022-02-26 22:07:12 +00002import { SlashCommandBuilder } from "@discordjs/builders";
Skyler Grey75ea9172022-08-06 10:22:23 +01003// @ts-expect-error
pineafan4f164f32022-02-26 22:07:12 +00004import { WrappedCheck } from "jshaiku";
pineafan73a7c4a2022-07-24 10:38:04 +01005import verify from "../reflex/verify.js";
pineafan4f164f32022-02-26 22:07:12 +00006
7const command = new SlashCommandBuilder()
8 .setName("verify")
pineafan63fc5e22022-08-04 22:04:10 +01009 .setDescription("Get verified in the server");
pineafan4f164f32022-02-26 22:07:12 +000010
pineafan63fc5e22022-08-04 22:04:10 +010011const callback = async (interaction: CommandInteraction): Promise<void> => {
pineafan377794f2022-04-18 19:01:01 +010012 verify(interaction);
pineafan63fc5e22022-08-04 22:04:10 +010013};
pineafan4f164f32022-02-26 22:07:12 +000014
Skyler Grey75ea9172022-08-06 10:22:23 +010015const check = (
16 _interaction: CommandInteraction,
17 _defaultCheck: WrappedCheck
18) => {
pineafan4f164f32022-02-26 22:07:12 +000019 return true;
pineafan63fc5e22022-08-04 22:04:10 +010020};
pineafan4f164f32022-02-26 22:07:12 +000021
22export { command };
23export { callback };
pineafan1dc15722022-03-14 21:27:34 +000024export { check };