pineafan | ad54d75 | 2022-04-18 19:01:43 +0100 | [diff] [blame] | 1 | import Discord, { CommandInteraction, MessageActionRow, MessageButton } from "discord.js"; |
| 2 | import { SlashCommandSubcommandBuilder } from "@discordjs/builders"; |
| 3 | import { WrappedCheck } from "jshaiku"; |
| 4 | import getEmojiByName from "../../utils/getEmojiByName.js"; |
pineafan | 4edb776 | 2022-06-26 19:21:04 +0100 | [diff] [blame] | 5 | import EmojiEmbed from "../../utils/generateEmojiEmbed.js"; |
pineafan | ad54d75 | 2022-04-18 19:01:43 +0100 | [diff] [blame] | 6 | import guide from "../../automations/guide.js"; |
| 7 | |
| 8 | const command = (builder: SlashCommandSubcommandBuilder) => |
| 9 | builder |
| 10 | .setName("guide") |
| 11 | .setDescription("Shows the welcome guide for the bot") |
| 12 | |
| 13 | |
| 14 | const callback = async (interaction) => { |
| 15 | guide(interaction.guild, interaction) |
| 16 | } |
| 17 | |
| 18 | const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => { |
| 19 | return true |
| 20 | } |
| 21 | |
| 22 | export { command }; |
| 23 | export { callback }; |
| 24 | export { check }; |