blob: 891b6f193d7ddcce80d6bee4238d35b8124cf42e [file] [log] [blame]
pineafanda6e5342022-07-03 10:03:16 +01001import Discord, { CommandInteraction, MessageActionRow, MessageButton } from "discord.js";
2import EmojiEmbed from "../../utils/generateEmojiEmbed.js";
3import confirmationMessage from "../../utils/confirmationMessage.js";
4import getEmojiByName from "../../utils/getEmojiByName.js";
5import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
6import { WrappedCheck } from "jshaiku";
7import client from "../../utils/client.js";
8
9const command = (builder: SlashCommandSubcommandBuilder) =>
10 builder
pineafanc1c18792022-08-03 21:41:36 +010011 .setName("rolemenu")
12 .setDescription("rolemenu")// TODO
13 .addRoleOption(option => option.setName("role").setDescription("The role to give after verifying")) // TODO
pineafanda6e5342022-07-03 10:03:16 +010014
15const callback = async (interaction: CommandInteraction): Promise<any> => {
16}
17
18const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
19 let member = (interaction.member as Discord.GuildMember)
pineafane23c4ec2022-07-27 21:56:27 +010020 if (!member.permissions.has("MANAGE_ROLES")) throw "You must have the *Manage Roles* permission to use this command"
pineafanda6e5342022-07-03 10:03:16 +010021 return true;
22}
23
24export { command };
25export { callback };
26export { check };