blob: f2c9c9ddb04cca08cea9a372ba67e8054d14c1e5 [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
Skyler Grey11236ba2022-08-08 21:13:33 +01007const command = new SlashCommandBuilder().setName("verify").setDescription("Get verified in the server");
pineafan4f164f32022-02-26 22:07:12 +00008
pineafan63fc5e22022-08-04 22:04:10 +01009const callback = async (interaction: CommandInteraction): Promise<void> => {
pineafan377794f2022-04-18 19:01:01 +010010 verify(interaction);
pineafan63fc5e22022-08-04 22:04:10 +010011};
pineafan4f164f32022-02-26 22:07:12 +000012
Skyler Grey11236ba2022-08-08 21:13:33 +010013const check = (_interaction: CommandInteraction, _defaultCheck: WrappedCheck) => {
pineafan4f164f32022-02-26 22:07:12 +000014 return true;
pineafan63fc5e22022-08-04 22:04:10 +010015};
pineafan4f164f32022-02-26 22:07:12 +000016
17export { command };
18export { callback };
pineafan1dc15722022-03-14 21:27:34 +000019export { check };