blob: d1a0659eff22755c2fbd7dc29295768a53b71c5c [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";
pineafan63fc5e22022-08-04 22:04:10 +01003// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Skyler Grey75ea9172022-08-06 10:22:23 +01004// @ts-expect-error
pineafan4f164f32022-02-26 22:07:12 +00005import { WrappedCheck } from "jshaiku";
pineafan73a7c4a2022-07-24 10:38:04 +01006import verify from "../reflex/verify.js";
pineafan4f164f32022-02-26 22:07:12 +00007
8const command = new SlashCommandBuilder()
9 .setName("verify")
pineafan63fc5e22022-08-04 22:04:10 +010010 .setDescription("Get verified in the server");
pineafan4f164f32022-02-26 22:07:12 +000011
pineafan63fc5e22022-08-04 22:04:10 +010012const callback = async (interaction: CommandInteraction): Promise<void> => {
pineafan377794f2022-04-18 19:01:01 +010013 verify(interaction);
pineafan63fc5e22022-08-04 22:04:10 +010014};
pineafan4f164f32022-02-26 22:07:12 +000015
Skyler Grey75ea9172022-08-06 10:22:23 +010016const check = (
17 _interaction: CommandInteraction,
18 _defaultCheck: WrappedCheck
19) => {
pineafan4f164f32022-02-26 22:07:12 +000020 return true;
pineafan63fc5e22022-08-04 22:04:10 +010021};
pineafan4f164f32022-02-26 22:07:12 +000022
23export { command };
24export { callback };
pineafan1dc15722022-03-14 21:27:34 +000025export { check };