blob: 507730b28f7f424739aae4c0f63ccd926bcc5fb0 [file] [log] [blame]
pineafanad54d752022-04-18 19:01:43 +01001import Discord, { CommandInteraction, MessageActionRow, MessageButton } from "discord.js";
2import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
3import { WrappedCheck } from "jshaiku";
4import getEmojiByName from "../../utils/getEmojiByName.js";
pineafan4edb7762022-06-26 19:21:04 +01005import EmojiEmbed from "../../utils/generateEmojiEmbed.js";
pineafan73a7c4a2022-07-24 10:38:04 +01006import guide from "../../reflex/guide.js";
pineafanad54d752022-04-18 19:01:43 +01007
8const command = (builder: SlashCommandSubcommandBuilder) =>
9 builder
pineafan63fc5e22022-08-04 22:04:10 +010010 .setName("guide")
11 .setDescription("Shows the welcome guide for the bot");
pineafanad54d752022-04-18 19:01:43 +010012
13
14const callback = async (interaction) => {
pineafan63fc5e22022-08-04 22:04:10 +010015 guide(interaction.guild, interaction);
16};
pineafanad54d752022-04-18 19:01:43 +010017
18const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
pineafan63fc5e22022-08-04 22:04:10 +010019 return true;
20};
pineafanad54d752022-04-18 19:01:43 +010021
22export { command };
23export { callback };
24export { check };