blob: f7e66b8a54a61bfc0842e37005885e12c6d549f6 [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
4// @ts-ignore
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
pineafan63fc5e22022-08-04 22:04:10 +010016const check = (_interaction: CommandInteraction, _defaultCheck: WrappedCheck) => {
pineafan4f164f32022-02-26 22:07:12 +000017 return true;
pineafan63fc5e22022-08-04 22:04:10 +010018};
pineafan4f164f32022-02-26 22:07:12 +000019
20export { command };
21export { callback };
pineafan1dc15722022-03-14 21:27:34 +000022export { check };